feat: Adds workflow for NixOS build
This commit is contained in:
parent
8c7a442610
commit
85c3b4e023
3 changed files with 86 additions and 15 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue