summaryrefslogtreecommitdiff
path: root/hosts/piframe/configuration.nix
blob: dc9fc4f00ca1a29cf5259aee9b55a7eed5480b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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";
}