mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: broke up samba file into two
This commit is contained in:
parent
b9cd8c1abb
commit
e1f8fedd77
2 changed files with 35 additions and 0 deletions
35
modules/nixos/services/samba/sambaEris/default.nix
Executable file
35
modules/nixos/services/samba/sambaEris/default.nix
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.services)
|
||||
instances
|
||||
;
|
||||
service = instances.samba;
|
||||
in
|
||||
{
|
||||
# If you ever need to start fresh, you need to add yourself to the Samba users database:
|
||||
# sudo smbpasswd -a username
|
||||
services = {
|
||||
samba = {
|
||||
# package = pkgs.samba4Full;
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
# ${instances.opencloud.name} = {
|
||||
# path = instances.opencloud.paths.path0;
|
||||
# writable = "true";
|
||||
# };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
service.ports.port0
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue