added samba for file-share

This commit is contained in:
Nickiel12 2024-12-28 09:40:05 -08:00
parent e3410fa535
commit 2e82a9d36b
3 changed files with 29 additions and 3 deletions

View file

@ -20,6 +20,7 @@
./modules/nicks_nextcould_integrations.nix
./modules/postgres.nix
./modules/protonvpn.nix
./modules/samba.nix
./modules/tailscale.nix
./modules/vaultwarden.nix
./modules/vsftpd.nix

View file

@ -242,9 +242,9 @@ in
floaterm = {
enable = true;
settings = {
position = "auto";
keymaps = {
toggle = "<leader>t";
keymaps_toggle = "<leader>t";
};
};

25
modules/samba.nix Normal file
View file

@ -0,0 +1,25 @@
{osConfig, pkgs, ...}:
let
in {
services.samba = {
enable = true;
openFirewall = true;
settings = {
global."invalid users" = [
"root"
];
global.security = "user";
global."passwd program" = "/run/wrappers/bin/passwd %u";
Iceberg = {
comment = "the Alaska SMB share";
path = "/Aurora/SharedFolders/Iceberg";
"guest ok" = "yes";
"read only" = "no";
browseable = "yes";
};
};
};
}