bundles/arch-with-gui: add some backup paths
This commit is contained in:
parent
b426ce811c
commit
32b732e509
1 changed files with 23 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
assert node.os == 'arch'
|
assert node.os == 'arch'
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
|
'backups': {
|
||||||
|
'paths': {
|
||||||
|
'/etc/netctl',
|
||||||
|
},
|
||||||
|
},
|
||||||
'pacman': {
|
'pacman': {
|
||||||
'packages': {
|
'packages': {
|
||||||
# fonts
|
# 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,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue