summaryrefslogtreecommitdiff
path: root/hosts/skadhi/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/skadhi/default.nix')
-rw-r--r--hosts/skadhi/default.nix44
1 files changed, 22 insertions, 22 deletions
diff --git a/hosts/skadhi/default.nix b/hosts/skadhi/default.nix
index 87d1e313..1f3f5306 100644
--- a/hosts/skadhi/default.nix
+++ b/hosts/skadhi/default.nix
@@ -1,35 +1,24 @@
1{ flake, flakeInputs, pkgs, config, lib, ... }: 1{ flake, flakeInputs, pkgs, config, lib, ... }:
2{ 2{
3 imports = with flake.nixosModules.systemProfiles; [ 3 imports = with flake.nixosModules.systemProfiles; [
4 ./hw.nix 4 ./hw.nix ./fs.nix ./networking
5 tmpfs-root default-locale openssh niri-unstable networkmanager lanzaboote zswap 5 tmpfs-root default-locale openssh lanzaboote zswap initrd-all-crypto-modules
6 flakeInputs.nixVirt.nixosModules.default
7 ]; 6 ];
8 7
9 config = { 8 config = {
10 system.stateVersion = "26.05"; 9 system.stateVersion = "26.05";
11 10
12 fileSystems."/persistent".neededForBoot = true;
13 environment.persistence."/persistent" = {
14 hideMounts = true;
15 directories = [
16 "/nix"
17 "/root"
18 "/var/log"
19 "/var/lib/nixos"
20 "/var/lib/sops-nix"
21 "/var/lib/systemd"
22 ];
23 timezone = true;
24 };
25
26 boot = { 11 boot = {
27 initrd.systemd = { 12 initrd = {
28 emergencyAccess = config.users.users.root.hashedPassword; 13 systemd = {
29 extraBin = { 14 emergencyAccess = config.users.users.root.hashedPassword;
30 "vim" = lib.getExe pkgs.vim; 15 extraBin = {
31 "grep" = lib.getExe pkgs.gnugrep; 16 "vim" = lib.getExe pkgs.vim;
17 "grep" = lib.getExe pkgs.gnugrep;
18 };
32 }; 19 };
20
21 kernelModules = [ "dm-integrity" ];
33 }; 22 };
34 23
35 lanzaboote.configurationLimit = 15; 24 lanzaboote.configurationLimit = 15;
@@ -82,5 +71,16 @@
82 }; 71 };
83 72
84 services.userborn.importLegacyState = false; 73 services.userborn.importLegacyState = false;
74
75 services.kmscon = {
76 enable = true;
77 config.hwaccel = true;
78 };
79
80 environment.persistence."/persistent".timezone = true;
81 time.timeZone = null;
82 systemd.tmpfiles.settings = {
83 "10-localtime"."/etc/localtime".L.argument = "/persistent/etc/localtime";
84 };
85 }; 85 };
86} 86}