add homeAdh in Crans module

merge-requests/35/head
Lzebulon 2025-10-26 19:31:10 +01:00
parent 25c0a5babb
commit c861aaa2c7
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
2 changed files with 27 additions and 17 deletions

View File

@ -23,12 +23,9 @@
}; };
}; };
resticClient.enable = false; homeAdh.enable = true;
};
fileSystems."/home-adh" = { resticClient.enable = false;
device = "172.16.4.2:/pool/home";
fsType = "nfs";
}; };
services.autofs = { services.autofs = {

View File

@ -1,18 +1,24 @@
{ lib, config, ... }: { lib, config, ... }:
let let
cfg = config.crans.homeNounou; cfg = config.crans;
inherit (lib) mkEnableOption mkIf; inherit (lib) mkEnableOption mkIf;
in in
{ {
options.crans.homeNounou = { options.crans = {
homeNounou = {
enable = mkEnableOption "Monter /home_nounou."; enable = mkEnableOption "Monter /home_nounou.";
}; };
homeAdh = {
enable = mkEnableOption "Monter /home-adh";
};
};
config = mkIf cfg.enable { config = {
fileSystems.home_nounou = { fileSystems = {
home_nounou = mkIf cfg.homeNounou.enable {
mountPoint = "/home_nounou"; mountPoint = "/home_nounou";
device = "172.16.10.1:/pool/home"; device = "172.16.10.1:/pool/home";
fsType = "nfs"; fsType = "nfs";
@ -21,5 +27,12 @@ in
"nosuid" "nosuid"
]; ];
}; };
home_adh = mkIf cfg.homeAdh.enable {
mountPoint = "/home-adh";
device = "172.16.4.2:/pool/home";
fsType = "nfs";
};
};
}; };
} }