feat(filesystems): add helios data smb share over tailscale
This commit is contained in:
parent
0646d775c4
commit
6f2f650892
3 changed files with 27 additions and 0 deletions
|
@ -9,4 +9,5 @@
|
|||
hardware-config.cpu = "amd";
|
||||
hardware-config.gpu = "nvidia";
|
||||
gaming.steam.enable = true;
|
||||
fs-config.mountHeliosData = true;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ in
|
|||
./hardware.nix
|
||||
./nix-config.nix
|
||||
./gaming.nix
|
||||
./filesystems.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
|
25
modules/nixos/filesystems.nix
Normal file
25
modules/nixos/filesystems.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
moduleName = "fs-config";
|
||||
cfg = config."${moduleName}";
|
||||
in
|
||||
{
|
||||
options = {
|
||||
"${moduleName}" = {
|
||||
mountHeliosData = lib.mkEnableOption "Mount helios SMB share to /media/helios/data.";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf cfg.mountHeliosData {
|
||||
fileSystems."/media/helios/data" = {
|
||||
device = "//helios/data";
|
||||
fsType = "cifs";
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue