dotfiles/nixos/boxes/bolty/nas.nix

29 lines
1.1 KiB
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
inputs,
lib,
...
}: {
2023-12-08 10:01:29 +00:00
users.users.sambaguest = {
isNormalUser = true;
extraGroups = [
];
home = "/data/shares/";
};
2024-04-21 19:16:41 +01:00
networking.firewall = {
enable = true;
allowPing = true;
};
2023-08-13 17:00:41 +01:00
networking.firewall.allowedTCPPorts = [2049];
2023-12-08 10:01:29 +00:00
services.nfs.server = {
enable = true;
exports = ''
/data/nfs 10.0.0.244/24(rw,sync,insecure,no_subtree_check,fsid=0) 100.81.212.51(rw,sync,insecure,no_subtree_check) 10.0.0.156(rw,sync,insecure,no_subtree_check)
/data/nfs/home_assistant/share 10.0.0.244/24(rw,sync,insecure,no_subtree_check,fsid=0) 100.81.212.51(rw,sync,insecure,no_subtree_check) 10.0.0.156(rw,sync,insecure,no_subtree_check)
/data/nfs/home_assistant/media 10.0.0.244/24(rw,sync,insecure,no_subtree_check,fsid=0) 100.81.212.51(rw,sync,insecure,no_subtree_check) 10.0.0.156(rw,sync,insecure,no_subtree_check)
/data/nfs/home_assistant/backups 10.0.0.244/24(rw,sync,insecure,no_subtree_check,fsid=0) 100.81.212.51(rw,sync,insecure,no_subtree_check) 10.0.0.156(rw,sync,insecure,no_subtree_check)
'';
};
2023-08-13 17:00:41 +01:00
}