mirror of https://gitlab.crans.org/nounous/nixos
39 lines
703 B
Nix
39 lines
703 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
cfg = config.crans;
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in
|
|
|
|
{
|
|
options.crans = {
|
|
homeNounou = {
|
|
enable = mkEnableOption "Monter /home_nounou.";
|
|
};
|
|
homeAdh = {
|
|
enable = mkEnableOption "Monter /home-adh";
|
|
};
|
|
};
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|