feat(nixosModules/server): add autoMounting helios
This commit is contained in:
parent
91ba03dfba
commit
591c90db68
3 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.server = {
|
||||
mountHelios = lib.mkEnableOption "";
|
||||
enableDDNS = lib.mkEnableOption "";
|
||||
};
|
||||
|
||||
|
@ -53,5 +54,16 @@
|
|||
};
|
||||
};
|
||||
})
|
||||
(lib.mkIf config.server.mountHelios {
|
||||
fileSystems."/media/helios/data" = {
|
||||
device = "//helios/data";
|
||||
fsType = "cifs";
|
||||
options = [
|
||||
"x-systemd.automount"
|
||||
"x-systemd.requires=tailscaled.service"
|
||||
"x-systemd.mount-timeout=0"
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
server = {
|
||||
enableDDNS = true;
|
||||
mountHelios = true;
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
|
|
@ -35,5 +35,7 @@
|
|||
enableVR = true;
|
||||
enableSunshine = true;
|
||||
};
|
||||
|
||||
server.mountHelios = true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue