blob: fc20ef7c27997911838c41c0122070f0d44aefe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ config, lib, pkgs, utils, ... }:
{
fileSystems = {
"/boot" =
{ label = "boot";
fsType = "vfat";
options = [ "fmask=0033" "dmask=0022" ];
};
"/.bcachefs" =
{ device = "/dev/mapper/sif-nvm0:/dev/mapper/sif-nvm1";
fsType = "bcachefs";
neededForBoot = true;
};
"/var/lib/sops-nix".neededForBoot = true;
"/var/lib/systemd".neededForBoot = true;
};
system.etc.overlay.enable = false;
systemd.sysusers.enable = false;
# 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;
}
|