summaryrefslogtreecommitdiff
path: root/hosts/sif/hw.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/sif/hw.nix')
-rw-r--r--hosts/sif/hw.nix63
1 files changed, 41 insertions, 22 deletions
diff --git a/hosts/sif/hw.nix b/hosts/sif/hw.nix
index 3442a93a..fc20ef7c 100644
--- a/hosts/sif/hw.nix
+++ b/hosts/sif/hw.nix
@@ -1,31 +1,50 @@
1{ config, lib, pkgs, ... }: 1{ config, lib, pkgs, utils, ... }:
2 2
3{ 3{
4 fileSystems."/" = 4 fileSystems = {
5 { device = "/dev/disk/by-uuid/f094bf06-66f9-40a8-9ab2-2b54d05223d2"; 5 "/boot" =
6 fsType = "btrfs"; 6 { label = "boot";
7 }; 7 fsType = "vfat";
8 options = [ "fmask=0033" "dmask=0022" ];
9 };
10 "/.bcachefs" =
11 { device = "/dev/mapper/sif-nvm0:/dev/mapper/sif-nvm1";
12 fsType = "bcachefs";
13 neededForBoot = true;
14 };
15 "/var/lib/sops-nix".neededForBoot = true;
16 "/var/lib/systemd".neededForBoot = true;
17 };
18 system.etc.overlay.enable = false;
19 systemd.sysusers.enable = false;
8 20
9 fileSystems."/boot" = 21 # boot.initrd.supportedFilesystems.bcachefs = true;
10 { device = "/dev/disk/by-uuid/B3A2-D029"; 22 # boot.initrd.systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false;
11 fsType = "vfat"; 23 # systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false;
12 }; 24 # boot.initrd.systemd.services."bcachefs" = {
25 # before = [ "initrd-fs.target" ];
26 # after = [ "local-fs-pre.target" "dev-sif-nvm0.device" "dev-sif-nvm1.device" ];
27 # requires = [ "dev-sif-nvm0.device" "dev-sif-nvm1.device" ];
28 # wantedBy = [ "initrd-fs.target" ];
29 # unitConfig = {
30 # DefaultDependencies = false;
31 # StopPropagatedFrom = [ "dev-sif-nvm0.device" "dev-sif-nvm1.device" ];
32 # };
33 # serviceConfig = {
34 # Type = "oneshot";
35 # ExecStart = "/bin/mount -o X-mount.mkdir -t bcachefs /dev/sif/nvm0:/dev/sif/nvm1 /sysroot/.bcachefs";
36 # RemainAfterExit = true;
37 # };
38 # };
39 # systemd.services."bcachefs" = {
40 # serviceConfig = {
41 # Type = "oneshot";
42 # ExecStart = "${pkgs.coreutils}/bin/true";
43 # };
44 # };
13 45
14 fileSystems."/home" =
15 { device = "/dev/disk/by-uuid/9e932072-3c56-4a9c-8da7-3163d2a8bf28";
16 fsType = "btrfs";
17 };
18
19 fileSystems."/var/media" =
20 { device = "/dev/disk/by-uuid/437eca70-d017-4d52-a1fa-2f4c7a87f096";
21 fsType = "btrfs";
22 };
23
24 nix.settings.max-jobs = 12;
25 # High-DPI console 46 # High-DPI console
26 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; 47 console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
27 48
28 hardware.cpu.intel.updateMicrocode = true;
29
30 hardware.enableRedistributableFirmware = true; 49 hardware.enableRedistributableFirmware = true;
31} 50}