nixfmt changes

This commit is contained in:
Gerg-L 2023-12-03 21:59:58 -05:00
parent 36176f647c
commit f25c8638ee
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
36 changed files with 133 additions and 135 deletions

View file

@ -18,11 +18,11 @@ _:
mode = "0644";
};
#make sure the sopskey is found
sops.age.sshKeyPaths = lib.mkForce [ "/persist/ssh/ssh_host_ed25519_key" ];
sops.age.sshKeyPaths = lib.mkForce ["/persist/ssh/ssh_host_ed25519_key"];
fileSystems = {
"/persist".neededForBoot = true;
"/efi22".options = [ "nofail" ];
"/efi0E".options = [ "nofail" ];
"/efi22".options = ["nofail"];
"/efi0E".options = ["nofail"];
};
boot = {
@ -32,22 +32,22 @@ _:
};
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
#disable hibernate and set cache max
kernelParams = [ "zfs.zfs_arc_max=17179869184" ];
kernelParams = ["zfs.zfs_arc_max=17179869184"];
initrd = {
#module for multiple swap devices
kernelModules = [ "dm_mod" ];
kernelModules = ["dm_mod"];
#keyboard module for zfs password
availableKernelModules = [ "hid_generic" ];
availableKernelModules = ["hid_generic"];
systemd.services.rollback = {
path = [ pkgs.zfs ];
path = [pkgs.zfs];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
unitConfig.DefaultDependencies = "no";
wantedBy = [ "initrd.target" ];
after = [ "zfs-import.target" ];
before = [ "sysroot.mount" ];
wantedBy = ["initrd.target"];
after = ["zfs-import.target"];
before = ["sysroot.mount"];
script = ''
zfs rollback -r rpool/root@empty
zfs rollback -r rpool/var@empty
@ -67,11 +67,11 @@ _:
mirroredBoots = [
{
path = "/efi22";
devices = [ "nodev" ];
devices = ["nodev"];
}
{
path = "/efi0E";
devices = [ "nodev" ];
devices = ["nodev"];
}
];
splashImage = null;