feat(filesystems): add helios data smb share over tailscale

This commit is contained in:
Mohammad Rafiq 2025-04-27 21:47:04 +08:00
parent 0646d775c4
commit 6f2f650892
No known key found for this signature in database
3 changed files with 27 additions and 0 deletions

View file

@ -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;
} }

View file

@ -13,6 +13,7 @@ in
./hardware.nix ./hardware.nix
./nix-config.nix ./nix-config.nix
./gaming.nix ./gaming.nix
./filesystems.nix
]; ];
options = { options = {

View 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";
};
})
];
}