summaryrefslogtreecommitdiff
path: root/hosts/sif/hw.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-01-06 17:46:24 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-01-06 17:46:24 +0100
commit493d4ea2cc87309d96c2ee6a4f2590171f934294 (patch)
tree76bdd7c4d9b94ccdce4487c56b29f7e038d97d12 /hosts/sif/hw.nix
parentf6f89d9933cf85c0b7e43558f7d05878a9244d7f (diff)
downloadnixos-493d4ea2cc87309d96c2ee6a4f2590171f934294.tar
nixos-493d4ea2cc87309d96c2ee6a4f2590171f934294.tar.gz
nixos-493d4ea2cc87309d96c2ee6a4f2590171f934294.tar.bz2
nixos-493d4ea2cc87309d96c2ee6a4f2590171f934294.tar.xz
nixos-493d4ea2cc87309d96c2ee6a4f2590171f934294.zip
...
Diffstat (limited to 'hosts/sif/hw.nix')
-rw-r--r--hosts/sif/hw.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix
index bfd91d57..d80f959c 100644
--- a/hosts/sif/hw.nix
+++ b/hosts/sif/hw.nix
@@ -8,14 +8,22 @@
8 options = [ "fmask=0033" "dmask=0022" ]; 8 options = [ "fmask=0033" "dmask=0022" ];
9 }; 9 };
10 "/.bcachefs" = 10 "/.bcachefs" =
11 { device = "/dev/mapper/sif-nvm0:/dev/mapper/sif-nvm1"; 11 { options = [
12 "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm0"
13 "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm1"
14 ];
15 device = "UUID=fe7bdaac-d2f3-4535-a635-e2fb97ef3802";
12 fsType = "bcachefs"; 16 fsType = "bcachefs";
13 neededForBoot = true; 17 neededForBoot = true;
14 }; 18 };
15 "/var/lib/sops-nix".neededForBoot = true; 19 "/var/lib/sops-nix".neededForBoot = true;
16 "/var/lib/systemd".neededForBoot = true; 20 "/var/lib/systemd".neededForBoot = true;
17 }; 21 };
18 system.etc.overlay.enable = false; 22 # system.etc.overlay.enable = false;
23
24 boot.initrd.systemd.contents."/etc/systemd/system/\\x2ebcachefs.mount.d/block_scan.conf".text = ''
25 Environment=BCACHEFS_BLOCK_SCAN=1
26 '';
19 27
20 # boot.initrd.supportedFilesystems.bcachefs = true; 28 # boot.initrd.supportedFilesystems.bcachefs = true;
21 # boot.initrd.systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false; 29 # boot.initrd.systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false;