feat: Adds workflow for NixOS build

This commit is contained in:
Vincent Mahnke 2025-12-25 20:46:06 +01:00
commit 85c3b4e023
Signed by: ViMaSter
GPG key ID: 6D787326BA7D6469
3 changed files with 86 additions and 15 deletions

View file

@ -123,6 +123,16 @@ EOF
chown kiosk:kiosk /home/kiosk/.bash_profile
'';
# Unpack preconfigured Firefox profile from the repository into kiosk's home
system.activationScripts.kioskFirefoxProfile = lib.stringAfter ["users"] ''
mkdir -p /home/kiosk/.mozilla/firefox
# Only unzip if directory is empty (first activation)
if [ -z "$(ls -A /home/kiosk/.mozilla/firefox 2>/dev/null)" ]; then
${pkgs.unzip}/bin/unzip -o ${../Firefox.zip} -d /home/kiosk/.mozilla/firefox
chown -R kiosk:kiosk /home/kiosk/.mozilla/firefox
fi
'';
############################################
# Include your userscripts in the image for easy import
############################################
@ -135,6 +145,7 @@ EOF
time.timeZone = "UTC";
services.openssh.enable = true; # optional, mirrors preseed tasksel ssh-server
# Keep system simple, disable unneeded DM
services.displayManager.enable = false;
}