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
|
class profiles::workstation::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':
ensure => running,
enable => true,
}
$cpus = $facts['processors']['count'] - 1
file_line { 'Makepkg paralell':
path => '/etc/makepkg.conf',
after => '^#-- Make flags',
line => "MAKEFLAGS='-j${cpus}'"
}
pacman::repo { 'adrift-space':
ensure => present,
server => 'http://repo.gandalf.adrift.space/arch',
sig_level => 'Optional',
}
# 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
}
|