Files
my_nixos/hosts/Aphelion/filesystems.nix
T
2026-05-09 16:17:24 +03:00

53 lines
1.4 KiB
Nix

# filesystem and storage specific options for Aphelion
{...}:
{
boot.initrd.clevis = {
enable = true;
devices."aphelion-zroot/data/sensitive".secretFile = ../../secrets/Aphelion/sensitive.jwe;
devices."aphelion-zroot/nix-enc".secretFile = ../../secrets/Aphelion/sensitive.jwe;
};
fileSystems = {
"/" = {
device = "none";
fsType = "tmpfs";
options = ["defaults" "mode=755"];
};
"/boot" = {
device = "/dev/disk/by-uuid/278A-0FB0";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
"/nix" = {
device = "aphelion-zroot/nix-enc";
fsType = "zfs";
};
"/home" = {
device = "aphelion-zroot/home";
fsType = "zfs";
};
"/home/yaroslav/.local/share/Steam"= {
device = "aphelion-zroot/data/steam";
fsType = "zfs";
};
"/Volumes/Trash" = {
device = "/dev/yarikpc/trash";
fsType = "ext4";
options = [ "x-mount.mkdir" "rw" ];
};
"/Volumes/Games" = {
device = "/dev/yarikpc/games";
fsType = "ext4";
options = [ "x-mount.mkdir" "rw" ];
};
"/Volumes/Sensitive" = {
device = "aphelion-zroot/data/sensitive";
fsType = "zfs";
options = [ "x-mount.mkdir" "rw" ];
};
};
services.nfs.server.enable = true;
services.nfs.server.exports = ''
/Volumes/Trash 192.168.1.0/24(rw)
'';
}