2022-02-12 13:06:53 +00:00
|
|
|
assert node.os == 'arch'
|
|
|
|
|
|
|
|
defaults = {
|
2022-02-12 17:08:04 +00:00
|
|
|
'backups': {
|
|
|
|
'paths': {
|
|
|
|
'/etc/netctl',
|
|
|
|
},
|
|
|
|
},
|
2022-03-10 19:59:55 +00:00
|
|
|
'icinga_options': {
|
|
|
|
'exclude_from_monitoring': True,
|
|
|
|
},
|
2022-02-12 13:06:53 +00:00
|
|
|
'pacman': {
|
|
|
|
'packages': {
|
|
|
|
# fonts
|
|
|
|
'fontconfig': {},
|
|
|
|
'ttf-dejavu': {
|
|
|
|
'needed_by': {
|
|
|
|
'pkg_pacman:sddm',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
# login management
|
|
|
|
'sddm': {},
|
|
|
|
|
|
|
|
# networking
|
|
|
|
'netctl': {},
|
|
|
|
'rfkill': {},
|
|
|
|
'wpa_supplicant': {},
|
|
|
|
'wpa_actiond': {},
|
|
|
|
|
|
|
|
# shell and other gui stuff
|
2022-03-10 19:59:55 +00:00
|
|
|
'dunst': {},
|
2022-02-12 13:06:53 +00:00
|
|
|
'fish': {},
|
|
|
|
'kitty': {},
|
2022-03-10 19:59:55 +00:00
|
|
|
'libnotify': {}, # provides notify-send
|
2022-02-12 13:06:53 +00:00
|
|
|
'light': {},
|
|
|
|
'redshift': {},
|
|
|
|
'rofi': {},
|
|
|
|
|
|
|
|
# sound
|
|
|
|
'pavucontrol': {},
|
|
|
|
'pulseaudio': {},
|
|
|
|
'pulseaudio-zeroconf': {},
|
|
|
|
|
|
|
|
# window management
|
|
|
|
'i3-wm': {},
|
|
|
|
'i3lock': {},
|
|
|
|
'xss-lock': {},
|
|
|
|
|
2022-03-10 19:59:55 +00:00
|
|
|
# i3pystatus dependencies
|
|
|
|
'iw': {},
|
|
|
|
'wireless_tools': {},
|
|
|
|
|
2022-02-12 13:06:53 +00:00
|
|
|
# Xorg
|
|
|
|
'xf86-input-libinput': {},
|
|
|
|
'xorg-server': {},
|
|
|
|
'xorg-setxkbmap': {},
|
|
|
|
'xorg-xev': {},
|
|
|
|
'xorg-xinput': {},
|
|
|
|
'xorg-xset': {},
|
2022-03-09 12:03:56 +00:00
|
|
|
|
|
|
|
# all them apps
|
2022-03-10 19:59:55 +00:00
|
|
|
'browserpass': {},
|
|
|
|
'browserpass-firefox': {},
|
2022-03-09 12:03:56 +00:00
|
|
|
'firefox': {},
|
2022-03-24 17:14:50 +00:00
|
|
|
'gimp': {},
|
2022-03-30 16:28:46 +00:00
|
|
|
'inkscape': {},
|
2022-03-10 19:59:55 +00:00
|
|
|
'maim': {},
|
|
|
|
'mosh': {},
|
|
|
|
'mpv': {},
|
|
|
|
'pass': {},
|
|
|
|
'pass-otp': {},
|
|
|
|
'pdftk': {},
|
|
|
|
'pwgen': {},
|
|
|
|
'qpdfview': {},
|
2022-03-30 16:28:46 +00:00
|
|
|
'sipcalc': {},
|
2022-03-10 19:59:55 +00:00
|
|
|
'the_silver_searcher': {},
|
2022-03-09 12:07:55 +00:00
|
|
|
'tlp': {},
|
2022-03-10 19:59:55 +00:00
|
|
|
'xclip': {},
|
|
|
|
'xdotool': {}, # needed for maim window selection
|
2022-02-12 13:06:53 +00:00
|
|
|
},
|
|
|
|
},
|
2022-03-10 19:59:55 +00:00
|
|
|
'systemd-networkd': {
|
|
|
|
'enable-resolved': True,
|
|
|
|
},
|
2022-02-12 13:06:53 +00:00
|
|
|
}
|
2022-02-12 17:08:04 +00:00
|
|
|
|
|
|
|
@metadata_reactor.provides(
|
|
|
|
'backups/paths',
|
|
|
|
)
|
|
|
|
def backup_every_user_home(metadata):
|
|
|
|
paths = set()
|
|
|
|
|
|
|
|
for user, config in metadata.get('users', {}).items():
|
|
|
|
if config.get('delete', False):
|
|
|
|
continue
|
|
|
|
|
|
|
|
paths.add(config.get('home', f'/home/{user}'))
|
|
|
|
|
|
|
|
return {
|
|
|
|
'backups': {
|
|
|
|
'paths': paths,
|
|
|
|
},
|
|
|
|
}
|