From c16a6dc50c3a5cbbce58a3bade15f2badc895fe6 Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Thu, 5 Oct 2023 11:52:52 -0600 Subject: [PATCH] unfree packages --- server/configuration.org | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/server/configuration.org b/server/configuration.org index 93e05a1..839ccef 100644 --- a/server/configuration.org +++ b/server/configuration.org @@ -161,7 +161,8 @@ nix = let featuresList = [ "gccarch-${cpuArchitecture}" "gccarch-znver3" ]; - in { + in + { gc = { automatic = true; dates = "weekly"; @@ -272,7 +273,13 @@ architecture and other build flags. #+begin_src nix nixpkgs = { hostPlatform = lib.mkDefault "x86_64-linux"; - config.allowUnfree = true; + config = { + allowUnfree = true; + permittedInsecurePackages = [ + "openssl-1.1.1w" + "nodejs-14.21.3" + ]; + }; # localSystem = { # gcc.arch = cpuArchitecture; # gcc.tune = cpuArchitecture; @@ -864,6 +871,7 @@ services = { workgroup = WORKGROUP server string = ${config.networking.hostName} netbios name = ${config.networking.hostName} + security = user create mask = 0664 force create mode = 0664 @@ -871,28 +879,25 @@ services = { force directory mode = 0775 follow symlinks = yes - security = user - hosts allow = 192.168.0. localhost - hosts deny = 0.0.0.0/0 + hosts allow = 192.168.0.0 localhost + # hosts deny = 0.0.0.0/0 guest account = nobody - map to guest = Bad user + map to guest = bad user ''; shares = let smbShare = mountName: { - path = "/export/${mountName}"; + path = "/mnt/${mountName}"; browseable = "yes"; writable = "yes"; "read only" = "no"; "guest ok" = "yes"; - # "write list" = "jawz"; + "write list" = "jawz"; "force user" = "jawz"; "force group" = "WORKGROUP"; }; in { - disk1 = smbShare "disk1" // { }; - disk2 = smbShare "disk2" // { }; - jawz = smbShare "jawz" // { }; - seedbox = smbShare "seedbox" // { }; + pool = smbShare "pool" // { }; + seedbox = smbShare "disks/seedbox" // { }; }; }; openssh = {