diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-23 14:16:39 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-23 22:24:01 +0100 |
commit | 3cd2393190ad39ea25dfa43b36cf1fbcacfc15f1 (patch) | |
tree | acdee9786ba7980777e978dacf807935abfd7a44 /manifests/workstation/family/archlinux.pp | |
parent | Puppetdb dump database every 30 min. (diff) | |
download | profiles-3cd2393190ad39ea25dfa43b36cf1fbcacfc15f1.tar.gz profiles-3cd2393190ad39ea25dfa43b36cf1fbcacfc15f1.tar.xz |
Split workstation os specific into family and name.
Diffstat (limited to 'manifests/workstation/family/archlinux.pp')
-rw-r--r-- | manifests/workstation/family/archlinux.pp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/manifests/workstation/family/archlinux.pp b/manifests/workstation/family/archlinux.pp new file mode 100644 index 0000000..f84946c --- /dev/null +++ b/manifests/workstation/family/archlinux.pp @@ -0,0 +1,51 @@ +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}'" + } + + 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 + + +} |