This commit is contained in:
Alex 2024-07-29 22:06:38 -04:00
parent 1baec9a698
commit 942b91f428
2 changed files with 100 additions and 57 deletions

View File

@ -36,56 +36,61 @@
''; '';
}; };
fileSystems = { fileSystems =
"/" = { let
device = "/dev/disk/by-uuid/6d62467a-ccc1-44ed-a1cc-f473b3962c64"; externalPrefix = "/media/external";
fsType = "ext4"; homePrefix = "/home/alex";
}; in
{
"/" = {
device = "/dev/disk/by-uuid/6d62467a-ccc1-44ed-a1cc-f473b3962c64";
fsType = "ext4";
};
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/2330-1A62"; device = "/dev/disk/by-uuid/2330-1A62";
fsType = "vfat"; fsType = "vfat";
}; };
"/media/external" = { externalPrefix = {
device = "/dev/mapper/externaldrive"; device = "/dev/mapper/externaldrive";
}; };
"/home/alex/Documents" = { "${homePrefix}/Documents" = {
device = "/media/external/Documents"; device = "${externalPrefix}/Documents";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Games" = { "${homePrefix}/Games" = {
device = "/media/external/Games"; device = "${externalPrefix}/Games";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Git" = { "${homePrefix}/Git" = {
device = "/media/external/Git"; device = "${externalPrefix}/Git";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Lutris" = { "${homePrefix}/Lutris" = {
device = "/media/external/Lutris"; device = "${externalPrefix}/Lutris";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Music" = { "${homePrefix}/Music" = {
device = "/media/external/Music"; device = "${externalPrefix}/Music";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Pictures" = { "${homePrefix}/Pictures" = {
device = "/media/external/Pictures"; device = "${externalPrefix}/Pictures";
options = [ "bind" ]; options = [ "bind" ];
}; };
"/home/alex/Videos" = { "${homePrefix}/Videos" = {
device = "/media/external/Videos"; device = "${externalPrefix}/Videos";
options = [ "bind" ]; options = [ "bind" ];
};
}; };
};
swapDevices = swapDevices =
[{ device = "/dev/disk/by-uuid/fda4f9fe-383f-477c-b2a2-c07f7efcc161"; }]; [{ device = "/dev/disk/by-uuid/fda4f9fe-383f-477c-b2a2-c07f7efcc161"; }];

View File

@ -38,27 +38,65 @@
''; '';
}; };
fileSystems = { fileSystems =
"/" = { let
device = "/dev/disk/by-uuid/5b17c208-6c1b-4317-b59c-6596b1857f1f"; externalPrefix = "/media/external";
fsType = "ext4"; homePrefix = "/home/alex";
}; in
{
"/" = {
device = "/dev/disk/by-uuid/5b17c208-6c1b-4317-b59c-6596b1857f1f";
fsType = "ext4";
};
"/boot" = { "/boot" = {
device = "/dev/disk/by-uuid/EB52-074B"; device = "/dev/disk/by-uuid/EB52-074B";
fsType = "vfat"; fsType = "vfat";
}; };
"/run/media/alex/External" = { "/media/external" = {
device = "/dev/disk/by-uuid/5057a0e6-649f-487f-a17c-11e379f9af19"; # device = "/dev/disk/by-uuid/5057a0e6-649f-487f-a17c-11e379f9af19";
fsType = "auto"; device = "/dev/mapper/luks-9870176e-53f3-493e-94d8-560994fa8f35";
}; # fsType = "auto";
};
"/home/alex/Documents" = { "${homePrefix}/Documents" = {
device = "/run/media/alex/External/Documents"; device = "${externalPrefix}/Documents";
options = [ "bind" ]; options = [ "bind" "x-gvfs-hide" ];
};
"/home/alex/Games" = {
# depends = [ "/run/media/alex/External" ];
device = "${externalPrefix}/Games";
# fsType = "none";
options = [ "bind" "x-gvfs-hide" ];
};
#"${homePrefix}/Git" = {
# device = "${externalPrefix}/Git";
# options = [ "bind" ];
#};
"${homePrefix}/Lutris" = {
device = "${externalPrefix}/Lutris";
options = [ "bind" "x-gvfs-hide" ];
};
# "${homePrefix}/Music" = {
# device = "${externalPrefix}/Music";
# options = [ "bind" "x-gvfs-hide" ];
# };
"${homePrefix}/Pictures" = {
device = "${externalPrefix}/Pictures";
options = [ "bind" "x-gvfs-hide" ];
};
"${homePrefix}/Videos" = {
device = "${externalPrefix}/Videos";
options = [ "bind" "x-gvfs-hide" ];
};
}; };
};
swapDevices = swapDevices =
[{ device = "/dev/disk/by-uuid/19de8142-e695-4425-a8cc-27e062204882"; }]; [{ device = "/dev/disk/by-uuid/19de8142-e695-4425-a8cc-27e062204882"; }];