mirror of https://gitlab.crans.org/nounous/nixos
Retrait home_nounou sur apprentix
parent
07a3891c6a
commit
a7d298aaf7
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
programs.vim.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nfs-utils
|
||||
shelldap
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue