{ config, lib, pkgs, utils, ... }: { fileSystems = { "/boot" = { label = "boot"; fsType = "vfat"; options = [ "fmask=0033" "dmask=0022" ]; }; "/.bcachefs" = { options = [ "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm0" "x-systemd.requires=/dev/disk/by-id/dm-name-sif-nvm1" ]; device = "/dev/disk/by-uuid/fe7bdaac-d2f3-4535-a635-e2fb97ef3802"; fsType = "bcachefs"; neededForBoot = true; }; "/var/lib/sops-nix".neededForBoot = true; "/var/lib/systemd".neededForBoot = true; }; # system.etc.overlay.enable = false; boot.initrd.systemd.packages = [ (pkgs.writeTextDir "/etc/systemd/system/\\x2ebcachefs.mount.d/block_scan.conf" '' [Mount] Environment=BCACHEFS_BLOCK_SCAN=1 '') ]; # boot.initrd.supportedFilesystems.bcachefs = true; # boot.initrd.systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false; # systemd.units."dev-sif-nvm0:-dev-sif-nvm1.device".enable = false; # boot.initrd.systemd.services."bcachefs" = { # before = [ "initrd-fs.target" ]; # after = [ "local-fs-pre.target" "dev-sif-nvm0.device" "dev-sif-nvm1.device" ]; # requires = [ "dev-sif-nvm0.device" "dev-sif-nvm1.device" ]; # wantedBy = [ "initrd-fs.target" ]; # unitConfig = { # DefaultDependencies = false; # StopPropagatedFrom = [ "dev-sif-nvm0.device" "dev-sif-nvm1.device" ]; # }; # serviceConfig = { # Type = "oneshot"; # ExecStart = "/bin/mount -o X-mount.mkdir -t bcachefs /dev/sif/nvm0:/dev/sif/nvm1 /sysroot/.bcachefs"; # RemainAfterExit = true; # }; # }; # systemd.services."bcachefs" = { # serviceConfig = { # Type = "oneshot"; # ExecStart = "${pkgs.coreutils}/bin/true"; # }; # }; # High-DPI console console.font = "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz"; hardware.enableRedistributableFirmware = true; }