From 3cd2393190ad39ea25dfa43b36cf1fbcacfc15f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 23 Jan 2022 14:16:39 +0100 Subject: Split workstation os specific into family and name. --- manifests/workstation/family/archlinux.pp | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 manifests/workstation/family/archlinux.pp (limited to 'manifests/workstation/family') 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 + + +} -- cgit v1.2.3