summaryrefslogtreecommitdiff
path: root/manifests/workstation/family/archlinux.pp
blob: eb4765a21a940b91ae5bcf24b782a202334ae574 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
class profiles::workstation::family::archlinux {

  pacman::hook { 'systemd daemon-reload':
    description => 'Reload systemd user daemon',
    exec       => '/bin/sudo systemctl --machine=hugo@.host --user daemon-reload',
    when       => 'PostTransaction',
    trigger    => {
      operation => 'Upgrade',
      type      => 'Path',
      target    => 'usr/lib/systemd/user/*',
    },
  }

  package { 'kernel-modules-hook':
    ensure => installed,
  } -> service { 'linux-modules-cleanup':
    enable => true,
  }

  $cpus = $facts['processors']['count'] - 1
  file_line { 'Makepkg paralell':
    path  => '/etc/makepkg.conf',
    after => '^#-- Make flags',
    line  => "MAKEFLAGS='-j${cpus}'"
  }

  ensure_packgaes ([
    'inetutils',
    'man-pages',
    'man-pages-sv',
    'net-tools',
    'pkgfile',
  ])

  # remove
  # - netctl

  # aur-packages
#     - pacaur
#     - ansible-aur-git
#     - cyrus-sasl-xoauth2-git
#     - todotxt
#     - effitask
#     - getmail
#     - mu
#     # - pacaur
#     - pandoc-bin
#     - tlclient
#     # backups old modules on kernel update
#     - kernel-modules-hook


}