user changes and more time machine config
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
user = "admin";
|
user = "admin";
|
||||||
password = "$y$j9T$EkPXmsmIMFFZ.WRrBYCxS1$P0kwo6e4.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
|
password = "\$y\$j9T\$EkPXmsmIMFFZ\.WRrBYCxS1\$P0kwo6e4\.WM5DsqUcEqWC3MrZp5KfCjxffraMFZWu06";
|
||||||
hostname = "jallen-nas";
|
hostname = "jallen-nas";
|
||||||
timezone = "America/Chicago";
|
timezone = "America/Chicago";
|
||||||
in
|
in
|
||||||
@@ -263,7 +263,7 @@ in
|
|||||||
# Admin account
|
# Admin account
|
||||||
users."${user}" = {
|
users."${user}" = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" "docker" "podman" "libvirtd" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "wheel" "networkmanager" "docker" "podman" "libvirtd" "nas-apps" "jallen-nas" ]; # Enable ‘sudo’ for the user.
|
||||||
initialHashedPassword = password;
|
initialHashedPassword = password;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
@@ -285,7 +285,7 @@ in
|
|||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
uid = 911;
|
uid = 911;
|
||||||
group = "jallen-nas";
|
group = "jallen-nas";
|
||||||
extraGroups = [ "wheel" "docker" "podman" "libvirt" ]; # Enable ‘sudo’ for the user.
|
extraGroups = [ "jallen-nas" ]; # Enable ‘sudo’ for the user.
|
||||||
initialHashedPassword = password;
|
initialHashedPassword = password;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
'';
|
'';
|
||||||
shares = {
|
shares = {
|
||||||
"3d_printer" = {
|
"3d_printer" = {
|
||||||
path = "/mnt/Main\ Pool/3d_printer";
|
path = "/mnt/mainpool/3d_printer";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
"directory mask" = "0755";
|
"directory mask" = "0755";
|
||||||
};
|
};
|
||||||
Backup = {
|
Backup = {
|
||||||
path = "/mnt/Main\ Pool/Backup";
|
path = "/mnt/mainpool/Backup";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"directory mask" = "0755";
|
"directory mask" = "0755";
|
||||||
};
|
};
|
||||||
Documents = {
|
Documents = {
|
||||||
path = "/mnt/Main\ Pool/Documents";
|
path = "/mnt/mainpool/Documents";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"directory mask" = "0755";
|
"directory mask" = "0755";
|
||||||
};
|
};
|
||||||
isos = {
|
isos = {
|
||||||
path = "/mnt/Main\ Pool/isos";
|
path = "/mnt/mainpool/isos";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
@@ -57,14 +57,33 @@
|
|||||||
"directory mask" = "0755";
|
"directory mask" = "0755";
|
||||||
};
|
};
|
||||||
TimeMachine = {
|
TimeMachine = {
|
||||||
path = "/mnt/Main\ Pool/TimeMachine";
|
path = "/mnt/mainpool/TimeMachine";
|
||||||
"valid users" = "mattjallen";
|
|
||||||
public = "no";
|
public = "no";
|
||||||
|
"force user" = "admin";
|
||||||
writable = "yes";
|
writable = "yes";
|
||||||
"force user" = "mattjallen";
|
"valid users" = "admin";
|
||||||
"fruit:aapl" = "yes";
|
"fruit:aapl" = "yes";
|
||||||
"fruit:time machine" = "yes";
|
"fruit:time machine" = "yes";
|
||||||
"vfs objects" = "catia fruit streams_xattr";
|
"vfs objects" = "catia fruit streams_xattr";
|
||||||
|
"fruit:metadata" = "stream";
|
||||||
|
"fruit:model" = "MacSamba";
|
||||||
|
"fruit:posix_rename" = "yes";
|
||||||
|
"fruit:veto_appledouble" = "no";
|
||||||
|
"fruit:nfs_aces" = "no";
|
||||||
|
"fruit:wipe_intentionally_left_blank_rfork" = "yes";
|
||||||
|
"fruit:delete_empty_adfiles" = "yes";
|
||||||
|
"fruit:time machine max size" = "1T";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.netatalk = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
time-machine = {
|
||||||
|
path = "/mnt/mainpool/TimeMachine";
|
||||||
|
"valid users" = "whoever";
|
||||||
|
"time machine" = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user