mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
refactor: samba and synology mounts redone
This commit is contained in:
parent
e934b63d5a
commit
6e62fd96fe
3 changed files with 22 additions and 13 deletions
|
@ -6,6 +6,7 @@
|
|||
inherit (flake.config.people) user0 user1;
|
||||
inherit (flake.config.system.device) desktop server nas;
|
||||
inherit (flake.config.service.instance) samba;
|
||||
|
||||
synologySecrets = config.sops.secrets."network/synology".path;
|
||||
serverSecrets = config.sops.secrets."network/server".path;
|
||||
in {
|
||||
|
@ -14,7 +15,6 @@ in {
|
|||
"folder0"
|
||||
"folder1"
|
||||
"folder2"
|
||||
"folder3"
|
||||
];
|
||||
|
||||
storageDrives = [
|
||||
|
@ -31,7 +31,9 @@ in {
|
|||
value = {
|
||||
device = nas.${synologyDrive}.device;
|
||||
fsType = "cifs";
|
||||
options = nas.${synologyDrive}.options ++ ["credentials=${synologySecrets}"];
|
||||
options =
|
||||
nas.${synologyDrive}.options
|
||||
++ ["credentials=${synologySecrets}"];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -49,7 +51,9 @@ in {
|
|||
value = {
|
||||
device = "${server.${sambaDrive}.device}/${samba.paths.path1}";
|
||||
fsType = "cifs";
|
||||
options = server.${sambaDrive}.options ++ ["credentials=${serverSecrets}"];
|
||||
options =
|
||||
server.${sambaDrive}.options
|
||||
++ ["credentials=${serverSecrets}"];
|
||||
};
|
||||
};
|
||||
in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue