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 = [
@ -27,5 +27,7 @@
hashedPasswordFile = config.sops.secrets.root-passwd-hash.path;
};
crans.home_nounou.enable = false;
system.stateVersion = "24.11";
}

View File

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

View File

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