mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2025-01-17 23:43:27 -08:00
added samba for file-share
This commit is contained in:
parent
e3410fa535
commit
2e82a9d36b
3 changed files with 29 additions and 3 deletions
|
@ -20,6 +20,7 @@
|
||||||
./modules/nicks_nextcould_integrations.nix
|
./modules/nicks_nextcould_integrations.nix
|
||||||
./modules/postgres.nix
|
./modules/postgres.nix
|
||||||
./modules/protonvpn.nix
|
./modules/protonvpn.nix
|
||||||
|
./modules/samba.nix
|
||||||
./modules/tailscale.nix
|
./modules/tailscale.nix
|
||||||
./modules/vaultwarden.nix
|
./modules/vaultwarden.nix
|
||||||
./modules/vsftpd.nix
|
./modules/vsftpd.nix
|
||||||
|
|
|
@ -242,9 +242,9 @@ in
|
||||||
|
|
||||||
floaterm = {
|
floaterm = {
|
||||||
enable = true;
|
enable = true;
|
||||||
position = "auto";
|
settings = {
|
||||||
keymaps = {
|
position = "auto";
|
||||||
toggle = "<leader>t";
|
keymaps_toggle = "<leader>t";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
25
modules/samba.nix
Normal file
25
modules/samba.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue