From c861aaa2c712ca7a697756577d64f4436796b35e Mon Sep 17 00:00:00 2001 From: Lzebulon Date: Sun, 26 Oct 2025 19:31:10 +0100 Subject: [PATCH] add homeAdh in Crans module --- hosts/vm/nextcloud/default.nix | 7 ++----- modules/crans/home.nix | 37 +++++++++++++++++++++++----------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/hosts/vm/nextcloud/default.nix b/hosts/vm/nextcloud/default.nix index de7cc9f..5bea3e0 100644 --- a/hosts/vm/nextcloud/default.nix +++ b/hosts/vm/nextcloud/default.nix @@ -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 = { diff --git a/modules/crans/home.nix b/modules/crans/home.nix index e95fbed..e2e4bab 100644 --- a/modules/crans/home.nix +++ b/modules/crans/home.nix @@ -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"; + }; }; }; }