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,25 +1,38 @@
{ 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 = {
enable = mkEnableOption "Monter /home_nounou."; homeNounou = {
enable = mkEnableOption "Monter /home_nounou.";
};
homeAdh = {
enable = mkEnableOption "Monter /home-adh";
};
}; };
config = mkIf cfg.enable { config = {
fileSystems.home_nounou = { fileSystems = {
mountPoint = "/home_nounou"; home_nounou = mkIf cfg.homeNounou.enable {
device = "172.16.10.1:/pool/home"; mountPoint = "/home_nounou";
fsType = "nfs"; device = "172.16.10.1:/pool/home";
options = [ fsType = "nfs";
"rw" options = [
"nosuid" "rw"
]; "nosuid"
];
};
home_adh = mkIf cfg.homeAdh.enable {
mountPoint = "/home-adh";
device = "172.16.4.2:/pool/home";
fsType = "nfs";
};
}; };
}; };
} }