From 2e82a9d36b3abac44f798e86af77d40cb69bca64 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sat, 28 Dec 2024 09:40:05 -0800 Subject: [PATCH] added samba for file-share --- hosts/Alaska/default.nix | 1 + modules/neovim.nix | 6 +++--- modules/samba.nix | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 modules/samba.nix diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 0bbd017..7ed165c 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -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 diff --git a/modules/neovim.nix b/modules/neovim.nix index 1ac107d..9ca3254 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -242,9 +242,9 @@ in floaterm = { enable = true; - position = "auto"; - keymaps = { - toggle = "t"; + settings = { + position = "auto"; + keymaps_toggle = "t"; }; }; diff --git a/modules/samba.nix b/modules/samba.nix new file mode 100644 index 0000000..1d1bf56 --- /dev/null +++ b/modules/samba.nix @@ -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"; + }; + }; + }; + +}