Retrait home_nounou sur apprentix

cephiroth-v2
pigeonmoelleux 2024-12-07 16:17:38 +01:00
parent 07a3891c6a
commit a7d298aaf7
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
3 changed files with 31 additions and 13 deletions

View File

@ -1,4 +1,4 @@
{ config, ... }: { config, lib, ... }:
{ {
imports = [ imports = [
@ -27,5 +27,7 @@
hashedPasswordFile = config.sops.secrets.root-passwd-hash.path; hashedPasswordFile = config.sops.secrets.root-passwd-hash.path;
}; };
crans.home_nounou.enable = false;
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View File

@ -28,6 +28,7 @@
programs.vim.enable = true; programs.vim.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nfs-utils
shelldap shelldap
]; ];
} }

View File

@ -1,17 +1,32 @@
{ pkgs, ... }: {
pkgs,
lib,
config,
...
}:
let
cfg = config.crans.home_nounou;
in
{ {
fileSystems.home_nounou = { options.crans.home_nounou = {
mountPoint = "/home_nounou"; enable = lib.mkOption {
device = "172.16.10.1:/pool/home"; type = lib.types.bool;
fsType = "nfs"; default = true;
options = [ description = "Monter les home nounous";
"rw" };
"nosuid"
];
}; };
environment.systemPackages = with pkgs; [ config = lib.mkIf cfg.enable {
nfs-utils fileSystems.home_nounou = {
]; mountPoint = "/home_nounou";
device = "172.16.10.1:/pool/home";
fsType = "nfs";
options = [
"rw"
"nosuid"
];
};
};
} }