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" = {
device = "172.16.4.2:/pool/home";
fsType = "nfs";
resticClient.enable = false;
};
services.autofs = {

View File

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