unfree packages
This commit is contained in:
parent
ecfbe3dd51
commit
c16a6dc50c
@ -161,7 +161,8 @@ nix = let featuresList = [
|
|||||||
"gccarch-${cpuArchitecture}"
|
"gccarch-${cpuArchitecture}"
|
||||||
"gccarch-znver3"
|
"gccarch-znver3"
|
||||||
];
|
];
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
@ -272,7 +273,13 @@ architecture and other build flags.
|
|||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
hostPlatform = lib.mkDefault "x86_64-linux";
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
config.allowUnfree = true;
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
permittedInsecurePackages = [
|
||||||
|
"openssl-1.1.1w"
|
||||||
|
"nodejs-14.21.3"
|
||||||
|
];
|
||||||
|
};
|
||||||
# localSystem = {
|
# localSystem = {
|
||||||
# gcc.arch = cpuArchitecture;
|
# gcc.arch = cpuArchitecture;
|
||||||
# gcc.tune = cpuArchitecture;
|
# gcc.tune = cpuArchitecture;
|
||||||
@ -864,6 +871,7 @@ services = {
|
|||||||
workgroup = WORKGROUP
|
workgroup = WORKGROUP
|
||||||
server string = ${config.networking.hostName}
|
server string = ${config.networking.hostName}
|
||||||
netbios name = ${config.networking.hostName}
|
netbios name = ${config.networking.hostName}
|
||||||
|
security = user
|
||||||
|
|
||||||
create mask = 0664
|
create mask = 0664
|
||||||
force create mode = 0664
|
force create mode = 0664
|
||||||
@ -871,28 +879,25 @@ services = {
|
|||||||
force directory mode = 0775
|
force directory mode = 0775
|
||||||
follow symlinks = yes
|
follow symlinks = yes
|
||||||
|
|
||||||
security = user
|
hosts allow = 192.168.0.0 localhost
|
||||||
hosts allow = 192.168.0. localhost
|
# hosts deny = 0.0.0.0/0
|
||||||
hosts deny = 0.0.0.0/0
|
|
||||||
guest account = nobody
|
guest account = nobody
|
||||||
map to guest = Bad user
|
map to guest = bad user
|
||||||
'';
|
'';
|
||||||
shares = let
|
shares = let
|
||||||
smbShare = mountName: {
|
smbShare = mountName: {
|
||||||
path = "/export/${mountName}";
|
path = "/mnt/${mountName}";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
writable = "yes";
|
writable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
# "write list" = "jawz";
|
"write list" = "jawz";
|
||||||
"force user" = "jawz";
|
"force user" = "jawz";
|
||||||
"force group" = "WORKGROUP";
|
"force group" = "WORKGROUP";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
disk1 = smbShare "disk1" // { };
|
pool = smbShare "pool" // { };
|
||||||
disk2 = smbShare "disk2" // { };
|
seedbox = smbShare "disks/seedbox" // { };
|
||||||
jawz = smbShare "jawz" // { };
|
|
||||||
seedbox = smbShare "seedbox" // { };
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
openssh = {
|
openssh = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user