aboutsummaryrefslogtreecommitdiff
path: root/machines/nixos/x86_64-linux/rivendell.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-12-08 18:37:18 -0800
committerFranck Cuny <franck@fcuny.net>2025-12-08 18:37:18 -0800
commit55076c1e0192159398cd4e9d3191031aeb80f679 (patch)
tree0ec8990e4b8b1745e23c6c4e9d2d8ae9c6187fc2 /machines/nixos/x86_64-linux/rivendell.nix
parentwhile this work, the setup is not yet ready (diff)
downloadinfra-55076c1e0192159398cd4e9d3191031aeb80f679.tar.gz
enable samba and avahi
Diffstat (limited to 'machines/nixos/x86_64-linux/rivendell.nix')
-rw-r--r--machines/nixos/x86_64-linux/rivendell.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/rivendell.nix b/machines/nixos/x86_64-linux/rivendell.nix
index 11207d7..fcbcf33 100644
--- a/machines/nixos/x86_64-linux/rivendell.nix
+++ b/machines/nixos/x86_64-linux/rivendell.nix
@@ -50,6 +50,39 @@
"/var/lib/gitolite/repositories"
];
+ services.samba = {
+ enable = true;
+ openFirewall = true;
+ settings = {
+ global = {
+ security = "user";
+ workgroup = "WORKGROUP";
+ "server string" = config.networking.hostName;
+ "netbios name" = config.networking.hostName;
+ "hosts allow" = "192.168.1.0/24 10.100.0.0/24 localhost";
+ "guest account" = "nobody";
+ "map to guest" = "bad user";
+ "use sendfile" = "yes";
+ "load printers" = "no";
+ "vfs objects" = "catia fruit streams_xattr";
+ "fruit:metadata" = "stream";
+ };
+
+ media = {
+ path = "/data/media";
+ browseable = "yes";
+ "read only" = "yes";
+ "guest ok" = "yes";
+ };
+ };
+ };
+
+ services.avahi = {
+ enable = true;
+ nssmdns4 = true;
+ openFirewall = true;
+ };
+
home-manager = {
users.${adminUser.name} = {
imports = [