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.cpu = "amd";
|
||||||
hardware-config.gpu = "nvidia";
|
hardware-config.gpu = "nvidia";
|
||||||
gaming.steam.enable = true;
|
gaming.steam.enable = true;
|
||||||
|
fs-config.mountHeliosData = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ in
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./nix-config.nix
|
./nix-config.nix
|
||||||
./gaming.nix
|
./gaming.nix
|
||||||
|
./filesystems.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
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