bundles/arch-with-gui: add some backup paths

This commit is contained in:
Franzi 2022-02-12 18:08:04 +01:00
parent b426ce811c
commit 32b732e509
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -1,6 +1,11 @@
assert node.os == 'arch'
defaults = {
'backups': {
'paths': {
'/etc/netctl',
},
},
'pacman': {
'packages': {
# fonts
@ -47,3 +52,21 @@ defaults = {
},
},
}
@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,
},
}