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,7 +36,12 @@
''; '';
}; };
fileSystems = { fileSystems =
let
externalPrefix = "/media/external";
homePrefix = "/home/alex";
in
{
"/" = { "/" = {
device = "/dev/disk/by-uuid/6d62467a-ccc1-44ed-a1cc-f473b3962c64"; device = "/dev/disk/by-uuid/6d62467a-ccc1-44ed-a1cc-f473b3962c64";
fsType = "ext4"; fsType = "ext4";
@ -47,42 +52,42 @@
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" ];
}; };
}; };

View File

@ -38,7 +38,12 @@
''; '';
}; };
fileSystems = { fileSystems =
let
externalPrefix = "/media/external";
homePrefix = "/home/alex";
in
{
"/" = { "/" = {
device = "/dev/disk/by-uuid/5b17c208-6c1b-4317-b59c-6596b1857f1f"; device = "/dev/disk/by-uuid/5b17c208-6c1b-4317-b59c-6596b1857f1f";
fsType = "ext4"; fsType = "ext4";
@ -49,14 +54,47 @@
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" ];
}; };
}; };