diff options
Diffstat (limited to 'hosts/skadhi/default.nix')
| -rw-r--r-- | hosts/skadhi/default.nix | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/hosts/skadhi/default.nix b/hosts/skadhi/default.nix new file mode 100644 index 00000000..e9d5cc59 --- /dev/null +++ b/hosts/skadhi/default.nix | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | { flake, flakeInputs, pkgs, config, lib, ... }: | ||
| 2 | { | ||
| 3 | imports = with flake.nixosModules.systemProfiles; [ | ||
| 4 | ./hw.nix | ||
| 5 | tmpfs-root default-locale openssh niri-unstable networkmanager lanzaboote zswap | ||
| 6 | flakeInputs.nixVirt.nixosModules.default | ||
| 7 | ]; | ||
| 8 | |||
| 9 | config = { | ||
| 10 | system.stateVersion = "26.05"; | ||
| 11 | |||
| 12 | fileSystems."/persistent".neededForBoot = true; | ||
| 13 | environment.persistence."/persistent" = { | ||
| 14 | hideMounts = true; | ||
| 15 | directories = [ | ||
| 16 | "/nix" | ||
| 17 | "/root" | ||
| 18 | "/home" | ||
| 19 | "/var/log" | ||
| 20 | "/var/lib/nixos" | ||
| 21 | "/var/lib/sops-nix" | ||
| 22 | "/var/lib/systemd" | ||
| 23 | ]; | ||
| 24 | timezone = true; | ||
| 25 | }; | ||
| 26 | |||
| 27 | boot = { | ||
| 28 | initrd.systemd = { | ||
| 29 | emergencyAccess = config.users.users.root.hashedPassword; | ||
| 30 | extraBin = { | ||
| 31 | "vim" = lib.getExe pkgs.vim; | ||
| 32 | "grep" = lib.getExe pkgs.gnugrep; | ||
| 33 | }; | ||
| 34 | }; | ||
| 35 | |||
| 36 | lanzaboote.configurationLimit = 15; | ||
| 37 | loader = { | ||
| 38 | efi.canTouchEfiVariables = true; | ||
| 39 | timeout = null; | ||
| 40 | }; | ||
| 41 | |||
| 42 | plymouth.enable = true; | ||
| 43 | |||
| 44 | kernelPackages = pkgs.linuxPackages_7_2; | ||
| 45 | consoleLogLevel = 3; | ||
| 46 | kernelParams = [ | ||
| 47 | "quiet" | ||
| 48 | "boot.shell_on_fail" | ||
| 49 | "udev.log_priority=3" | ||
| 50 | "rd.systemd.show_status=auto" | ||
| 51 | "plymouth.use-simpledrm" | ||
| 52 | ]; | ||
| 53 | |||
| 54 | tmp.useTmpfs = true; | ||
| 55 | }; | ||
| 56 | |||
| 57 | services.timesyncd.enable = false; | ||
| 58 | services.chrony = { | ||
| 59 | enable = true; | ||
| 60 | enableNTS = true; | ||
| 61 | servers = []; | ||
| 62 | extraConfig = '' | ||
| 63 | pool time.cloudflare.com iburst nts | ||
| 64 | pool nts.netnod.se prefer iburst nts | ||
| 65 | server ptbtime1.ptb.de prefer iburst nts | ||
| 66 | server ptbtime2.ptb.de prefer iburst nts | ||
| 67 | server ptbtime3.ptb.de prefer iburst nts | ||
| 68 | server ptbtime4.ptb.de prefer iburst nts | ||
| 69 | pool ntppool1.time.nl prefer iburst nts | ||
| 70 | pool ntppool2.time.nl prefer iburst nts | ||
| 71 | |||
| 72 | authselectmode require | ||
| 73 | minsources 3 | ||
| 74 | |||
| 75 | nocerttimecheck 1 | ||
| 76 | |||
| 77 | leapsectz right/UTC | ||
| 78 | |||
| 79 | makestep 0.1 3 | ||
| 80 | |||
| 81 | cmdport 0 | ||
| 82 | ''; | ||
| 83 | }; | ||
| 84 | |||
| 85 | services.userborn.importLegacyState = false; | ||
| 86 | }; | ||
| 87 | } | ||
