Used persistence for mounting network folders

This commit is contained in:
Jan-Bulthuis 2025-06-10 02:37:26 +02:00
parent 41d25d9695
commit db4bd8cfd9

View File

@ -144,6 +144,18 @@ in
home.username = "$USER";
home.homeDirectory = "/.$HOME";
modules.profiles.base.enable = true;
# Mount the directories from the network share
home.persistence."/network/$USER" = {
directories = [
"Music"
"Pictures"
"Documents"
"Videos"
];
files = [ ];
allowOther = true;
};
}
)
] ++ config.home-manager.sharedModules;
@ -158,7 +170,8 @@ in
fi
'';
# Mount home directory
# Automatically mount home share
# Can be accessed at /network/$USER
services.autofs = {
enable = true;
autoMaster =