hosts: add kled
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
config,
|
||||
# inputs,
|
||||
...
|
||||
}: let
|
||||
disk = "/dev/disk/by-partuuid/33394714-d94d-4085-b020-3fe5d02e3494";
|
||||
luksName = "luks-${config.networking.hostId}";
|
||||
in rec {
|
||||
boot.initrd.luks.devices."${luksName}".device = disk;
|
||||
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-partuuid/7f1bd772-f3ac-4075-94a7-e1729994c7fc";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0077" "dmask=0077"];
|
||||
};
|
||||
|
||||
"/tmp" = {
|
||||
device = "none";
|
||||
fsType = "tmpfs";
|
||||
options = ["rw" "nosuid" "nodev"];
|
||||
};
|
||||
|
||||
"/" = {
|
||||
device = "/dev/mapper/${luksName}";
|
||||
fsType = "btrfs";
|
||||
options = ["subvol=@nixos-root"];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
inherit (fileSystems."/") device fsType;
|
||||
options = ["subvol=@nix" "noatime"];
|
||||
};
|
||||
|
||||
"/storage" = {
|
||||
inherit (fileSystems."/") device fsType;
|
||||
options = ["subvol=@storage"];
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
inherit (fileSystems."/") device fsType;
|
||||
options = ["subvol=@home"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user