refactor(eientei): convert to global split zfs
This commit is contained in:
parent
4ba694da03
commit
ee098cdc28
|
@ -6,10 +6,9 @@
|
||||||
auth.openssh.enable = true;
|
auth.openssh.enable = true;
|
||||||
fs.esp.uuid = "C368-7571";
|
fs.esp.uuid = "C368-7571";
|
||||||
fs.type = "zfs";
|
fs.type = "zfs";
|
||||||
fs.zfs.externalStore = true;
|
fs.zfs.split.enable = true;
|
||||||
fs.external.device = "/dev/disk/by-uuid/d9202e56-a14f-4342-acdb-dbae33d680fc";
|
fs.zfs.split.store = "d9202e56-a14f-4342-acdb-dbae33d680fc";
|
||||||
fs.external.fsType = "xfs";
|
fs.zfs.split.secret = "1404c4f1-b890-4cf0-ab8a-26bd81bd2254";
|
||||||
fs.external.options = [ "noatime" ];
|
|
||||||
fs.cryptsetup.enable = true;
|
fs.cryptsetup.enable = true;
|
||||||
fs.cryptsetup.allowDiscards = false;
|
fs.cryptsetup.allowDiscards = false;
|
||||||
fs.cryptsetup.uuids.secret = "c33c9b18-a280-42d7-8740-3f8d3f60dc43";
|
fs.cryptsetup.uuids.secret = "c33c9b18-a280-42d7-8740-3f8d3f60dc43";
|
||||||
|
@ -19,20 +18,6 @@
|
||||||
oci.enable = true;
|
oci.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fstrim.enable = true;
|
|
||||||
boot.swraid.enable = true;
|
|
||||||
boot.swraid.mdadmConf = ''
|
|
||||||
PROGRAM /usr/bin/true
|
|
||||||
'';
|
|
||||||
fileSystems."/nix/var/secret" =
|
|
||||||
{ device = "/dev/disk/by-uuid/1404c4f1-b890-4cf0-ab8a-26bd81bd2254";
|
|
||||||
fsType = "ext4";
|
|
||||||
options = [ "noatime" ];
|
|
||||||
neededForBoot = true;
|
|
||||||
depends = [ "/nix/var" ];
|
|
||||||
};
|
|
||||||
boot.initrd.systemd.services.zfs-import-eientei.after = [ "cryptsetup.target" ];
|
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="80:61:5f:07:9e:2f", NAME="ix0"
|
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="80:61:5f:07:9e:2f", NAME="ix0"
|
||||||
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:e0:4c:68:bb:30", NAME="ss0"
|
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:e0:4c:68:bb:30", NAME="ss0"
|
||||||
|
|
Loading…
Reference in a new issue