DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: c56201b8f1fa477e04adcb673a5e0b79a28d02e3 nix-arta/modules/hosts/ws/arwen/_nixos/default.nix -rw-r--r-- 1.0 KiB
c56201b8Jonni Liljamo feat: niri fullscreen bind 24 days ago
                                                                                
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
{pkgs, ...}: {
  imports = [
    ./hardware-configuration.nix
    ./preservation.nix
    ./not-managed-by-modules-yet.nix
  ];

  boot.loader.systemd-boot.enable = true;
  boot.loader.systemd-boot.configurationLimit = 9;
  boot.loader.efi.canTouchEfiVariables = true;

  boot.initrd.systemd.enable = true;
  boot.initrd.systemd.services.wipe = {
    wantedBy = ["initrd.target"];
    after = ["zfs-import-zpool.service"];
    before = ["sysroot.mount"];
    path = with pkgs; [zfs];
    unitConfig.DefaultDependencies = "no";
    serviceConfig.Type = "oneshot";
    script = ''
      zfs rollback -r zpool/root@blank
      zfs rollback -r zpool/home@blank
    '';
  };

  sops.defaultSopsFile = ../../../../../secrets/arwen/secrets.yaml;
  sops.gnupg.sshKeyPaths = ["/persist/etc/ssh/ssh_host_rsa_key"];
  sops.age.sshKeyPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];

  networking.hostId = "9c928f21";
  networking.networkmanager.enable = true;

  time.timeZone = "Europe/Helsinki";

  system.stateVersion = "25.11";
}