diff options
Diffstat (limited to 'hosts/piframe/configuration.nix')
| -rw-r--r-- | hosts/piframe/configuration.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/hosts/piframe/configuration.nix b/hosts/piframe/configuration.nix new file mode 100644 index 0000000..dc9fc4f --- /dev/null +++ b/hosts/piframe/configuration.nix @@ -0,0 +1,47 @@ +{ config, lib, pkgs, ... }: { + # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) + boot.loader.grub.enable = false; + # Enables the generation of /boot/extlinux/extlinux.conf + boot.loader.generic-extlinux-compatible.enable = true; + + _archetypes = { + # Use headless profile + profiles.headless = { + enable = true; + home.users.timmy.enable = true; + }; + collections = { + desktop.xserver.enable = true; + }; + }; + + # Enable geoclue for redshift + services._geoclue2.enable = true; + + # Install immich-frame + environment.systemPackages = with pkgs; [ + immich-frame + ]; + + # Enable user timmy + _users.timmy = { + enable = true; + autologin.enable = true; + wifi.enable = true; + }; + + # Configure home + home-manager.users.timmy = { + services._redshift.enable = true; + home.file.".xinitrc" = { + text = '' + #!/bin/sh + redshift & + unclutter & + exec immich-frame + ''; + }; + }; + + system.stateVersion = "25.11"; +} |
