diff options
Diffstat (limited to 'manifests/workstation/archlinux.pp')
-rw-r--r-- | manifests/workstation/archlinux.pp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/manifests/workstation/archlinux.pp b/manifests/workstation/archlinux.pp new file mode 100644 index 0000000..29ef380 --- /dev/null +++ b/manifests/workstation/archlinux.pp @@ -0,0 +1,27 @@ +class profiles::workstation::archlinux { + # Rebuilt my local xmonad config after an upgrade to xmonad. + # It's required, I think due to something with dynamic linking. + # It's actually pretty ugly that I'm hardcoded in here, but + # something had to be done. + pacman::hook { 'xmonad': + description => 'Rebuild local xmonad config.', + when => 'PostTransaction', + exec => '/bin/sudo -Hu hugo xmonad --recompile', + trigger => { + type => 'Package', + operation => ['Upgrade', 'Install'], + target => 'xmonad*', + }, + } + + pacman::hook { 'systemd daemon-reload': + description => 'Reload systemd user daemon', + exec => '/bin/sudo -Hu hugo systemctl --user daemon-reload', + when => 'PostTransaction', + trigger => { + operation => 'Upgrade', + type => 'Path', + target => '/usr/lib/systemd/user/*', + }, + } +} |