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,6 +1,24 @@
{ pkgs, ... }: {
pkgs,
lib,
config,
...
}:
let
cfg = config.crans.home_nounou;
in
{ {
options.crans.home_nounou = {
enable = lib.mkOption {
type = lib.types.bool;
default = true;
description = "Monter les home nounous";
};
};
config = lib.mkIf cfg.enable {
fileSystems.home_nounou = { fileSystems.home_nounou = {
mountPoint = "/home_nounou"; mountPoint = "/home_nounou";
device = "172.16.10.1:/pool/home"; device = "172.16.10.1:/pool/home";
@ -10,8 +28,5 @@
"nosuid" "nosuid"
]; ];
}; };
};
environment.systemPackages = with pkgs; [
nfs-utils
];
} }