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";
fsType = "ext4";
@ -47,42 +52,42 @@
fsType = "vfat";
};
"/media/external" = {
externalPrefix = {
device = "/dev/mapper/externaldrive";
};
"/home/alex/Documents" = {
device = "/media/external/Documents";
"${homePrefix}/Documents" = {
device = "${externalPrefix}/Documents";
options = [ "bind" ];
};
"/home/alex/Games" = {
device = "/media/external/Games";
"${homePrefix}/Games" = {
device = "${externalPrefix}/Games";
options = [ "bind" ];
};
"/home/alex/Git" = {
device = "/media/external/Git";
"${homePrefix}/Git" = {
device = "${externalPrefix}/Git";
options = [ "bind" ];
};
"/home/alex/Lutris" = {
device = "/media/external/Lutris";
"${homePrefix}/Lutris" = {
device = "${externalPrefix}/Lutris";
options = [ "bind" ];
};
"/home/alex/Music" = {
device = "/media/external/Music";
"${homePrefix}/Music" = {
device = "${externalPrefix}/Music";
options = [ "bind" ];
};
"/home/alex/Pictures" = {
device = "/media/external/Pictures";
"${homePrefix}/Pictures" = {
device = "${externalPrefix}/Pictures";
options = [ "bind" ];
};
"/home/alex/Videos" = {
device = "/media/external/Videos";
"${homePrefix}/Videos" = {
device = "${externalPrefix}/Videos";
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";
fsType = "ext4";
@ -49,14 +54,47 @@
fsType = "vfat";
};
"/run/media/alex/External" = {
device = "/dev/disk/by-uuid/5057a0e6-649f-487f-a17c-11e379f9af19";
fsType = "auto";
"/media/external" = {
# device = "/dev/disk/by-uuid/5057a0e6-649f-487f-a17c-11e379f9af19";
device = "/dev/mapper/luks-9870176e-53f3-493e-94d8-560994fa8f35";
# fsType = "auto";
};
"/home/alex/Documents" = {
device = "/run/media/alex/External/Documents";
options = [ "bind" ];
"${homePrefix}/Documents" = {
device = "${externalPrefix}/Documents";
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" ];
};
};