move some configuration from nodes to bundle:arch-with-gui
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-03-10 20:59:55 +01:00
parent e181be3fc6
commit 15ae3b7a0b
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 35 additions and 69 deletions

View file

@ -1,3 +1,3 @@
[Autologin] [Autologin]
User=${username} User=${user}
Session=${session} Session=i3.desktop

View file

@ -20,7 +20,7 @@ actions = {
'i3pystatus_install': { 'i3pystatus_install': {
'command': ' && '.join([ 'command': ' && '.join([
'cd /opt/i3pystatus/src', 'cd /opt/i3pystatus/src',
'/opt/i3pystatus/venv/bin/pip install --upgrade pip {}'.format(' '.join(sorted(node.metadata.get('arch-with-gui/i3pystatus/deps', set())))), '/opt/i3pystatus/venv/bin/pip install --upgrade pip colour netifaces basiciw',
'/opt/i3pystatus/venv/bin/pip install --upgrade -e .', '/opt/i3pystatus/venv/bin/pip install --upgrade -e .',
]), ]),
'needs': { 'needs': {
@ -85,9 +85,11 @@ for filename in listdir(join(repo.path, 'data', 'arch-with-gui', 'files', 'fonts
**attrs, **attrs,
} }
if node.metadata.get('arch-with-gui/autologin', {}): if node.metadata.get('arch-with-gui/autologin_as', None):
files['/etc/sddm.conf.d/autologin.conf'] = { files['/etc/sddm.conf.d/autologin.conf'] = {
'context': node.metadata.get('arch-with-gui/autologin'), 'context': {
'user': node.metadata.get('arch-with-gui/autologin_as'),
},
'content_type': 'mako', 'content_type': 'mako',
'before': { 'before': {
'svc_systemd:sddm', 'svc_systemd:sddm',

View file

@ -6,6 +6,9 @@ defaults = {
'/etc/netctl', '/etc/netctl',
}, },
}, },
'icinga_options': {
'exclude_from_monitoring': True,
},
'pacman': { 'pacman': {
'packages': { 'packages': {
# fonts # fonts
@ -26,8 +29,10 @@ defaults = {
'wpa_actiond': {}, 'wpa_actiond': {},
# shell and other gui stuff # shell and other gui stuff
'dunst': {},
'fish': {}, 'fish': {},
'kitty': {}, 'kitty': {},
'libnotify': {}, # provides notify-send
'light': {}, 'light': {},
'redshift': {}, 'redshift': {},
'rofi': {}, 'rofi': {},
@ -42,6 +47,10 @@ defaults = {
'i3lock': {}, 'i3lock': {},
'xss-lock': {}, 'xss-lock': {},
# i3pystatus dependencies
'iw': {},
'wireless_tools': {},
# Xorg # Xorg
'xf86-input-libinput': {}, 'xf86-input-libinput': {},
'xorg-server': {}, 'xorg-server': {},
@ -51,10 +60,27 @@ defaults = {
'xorg-xset': {}, 'xorg-xset': {},
# all them apps # all them apps
'browserpass': {},
'browserpass-firefox': {},
'firefox': {}, 'firefox': {},
'maim': {},
'mosh': {},
'mpv': {},
'pass': {},
'pass-otp': {},
'pdftk': {},
'pwgen': {},
'qpdfview': {},
'the_silver_searcher': {},
'thermald': {},
'tlp': {}, 'tlp': {},
'xclip': {},
'xdotool': {}, # needed for maim window selection
}, },
}, },
'systemd-networkd': {
'enable-resolved': True,
},
} }
@metadata_reactor.provides( @metadata_reactor.provides(

View file

@ -16,17 +16,7 @@ nodes['fkusei-locutus'] = {
}, },
'metadata': { 'metadata': {
'arch-with-gui': { 'arch-with-gui': {
'autologin': { 'autologin_as': 'fkunsmann',
'username': 'fkunsmann',
'session': 'i3.desktop',
},
'i3pystatus': {
'deps': {
'colour',
'netifaces',
'basiciw',
},
},
}, },
'bird': { 'bird': {
'bgp_neighbors': { 'bgp_neighbors': {
@ -50,9 +40,6 @@ nodes['fkusei-locutus'] = {
'8000': {'*'}, '8000': {'*'},
}, },
}, },
'icinga_options': {
'exclude_from_monitoring': True,
},
'interfaces': { 'interfaces': {
'enp0s31f6': { 'enp0s31f6': {
'dhcp': True, 'dhcp': True,
@ -94,25 +81,10 @@ nodes['fkusei-locutus'] = {
# all that other random stuff one needs # all that other random stuff one needs
'apachedirectorystudio': {}, 'apachedirectorystudio': {},
'browserpass': {},
'browserpass-firefox': {},
'direnv': {}, 'direnv': {},
'dunst': {},
'freerdp': {}, 'freerdp': {},
'libnotify': {}, # provides notify-send
'maim': {},
'mosquitto': {}, 'mosquitto': {},
'mpv': {},
'pass': {},
'pass-otp': {},
'pdftk': {},
'pwgen': {},
'qpdfview': {},
'the_silver_searcher': {},
'thermald': {},
'virt-manager': {}, 'virt-manager': {},
'xclip': {}, # for pass -c
'xdotool': {},
}, },
}, },
'systemd-boot': { 'systemd-boot': {
@ -143,9 +115,6 @@ nodes['fkusei-locutus'] = {
}, },
}, },
}, },
'systemd-networkd': {
'enable-resolved': True,
},
'timezone': 'Europe/Berlin', 'timezone': 'Europe/Berlin',
'users': { 'users': {
'fkunsmann': { 'fkunsmann': {

View file

@ -15,17 +15,7 @@ nodes['kunsi-p14s'] = {
}, },
'metadata': { 'metadata': {
'arch-with-gui': { 'arch-with-gui': {
'autologin': { 'autologin_as': 'kunsi',
'username': 'kunsi',
'session': 'i3.desktop',
},
'i3pystatus': {
'deps': {
'colour',
'netifaces',
'basiciw',
},
},
}, },
'backup-client': { 'backup-client': {
# only alert people if we're missing more than a week of backups # only alert people if we're missing more than a week of backups
@ -43,9 +33,6 @@ nodes['kunsi-p14s'] = {
'8000': {'*'}, '8000': {'*'},
}, },
}, },
'icinga_options': {
'exclude_from_monitoring': True,
},
'interfaces': { 'interfaces': {
'enp2s0f0': { 'enp2s0f0': {
'dhcp': True, 'dhcp': True,
@ -100,30 +87,15 @@ nodes['kunsi-p14s'] = {
# all that other random stuff one needs # all that other random stuff one needs
'abcde': {}, 'abcde': {},
'apachedirectorystudio': {}, 'apachedirectorystudio': {},
'browserpass': {},
'browserpass-firefox': {},
'claws-mail': {}, 'claws-mail': {},
'claws-mail-themes': {}, 'claws-mail-themes': {},
'dunst': {},
'ferdi-bin': {}, 'ferdi-bin': {},
'ffmpeg': {}, 'ffmpeg': {},
'gumbo-parser': {}, # for claws litehtml 'gumbo-parser': {}, # for claws litehtml
'libnotify': {}, # provides notify-send
'maim': {},
'mosh': {},
'mosquitto': {}, 'mosquitto': {},
'mpv': {},
'pass': {},
'pass-otp': {},
'pdftk': {},
'perl-musicbrainz-discid': {}, # for abcde 'perl-musicbrainz-discid': {}, # for abcde
'perl-webservice-musicbrainz': {}, # for abcde 'perl-webservice-musicbrainz': {}, # for abcde
'pwgen': {},
'qpdfview': {},
'the_silver_searcher': {},
'virt-manager': {}, 'virt-manager': {},
'xclip': {}, # for pass -c
'xdotool': {},
'xf86-input-wacom': {}, 'xf86-input-wacom': {},
}, },
}, },
@ -155,9 +127,6 @@ nodes['kunsi-p14s'] = {
}, },
}, },
}, },
'systemd-networkd': {
'enable-resolved': True,
},
'timezone': 'Europe/Berlin', 'timezone': 'Europe/Berlin',
'users': { 'users': {
'kunsi': { 'kunsi': {