diff --git a/hosts/default.nix b/hosts/default.nix index 7cb76e9..bf850f2 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -83,5 +83,32 @@ in { environment.systemPackages = with pkgs; [ pinentry-curses ]; + + # Security config + security = { + rtkit.enable = true; + + # configure sudo + sudo = { + enable = true; + extraRules = [{ + commands = [ + { + command = "${pkgs.systemd}/bin/systemctl suspend"; + options = [ "NOPASSWD" ]; + } + { + command = "${pkgs.systemd}/bin/reboot"; + options = [ "NOPASSWD" ]; + } + { + command = "${pkgs.systemd}/bin/poweroff"; + options = [ "NOPASSWD" ]; + } + ]; + groups = [ "wheel" ]; + }]; + }; + }; } diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 1c53615..dc6f249 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -134,37 +134,6 @@ in { # xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ]; xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; - # Security config - security = { - rtkit.enable = true; - - # configure sudo - sudo = { - enable = true; - extraRules = [{ - commands = [ - { - command = "${pkgs.systemd}/bin/systemctl suspend"; - options = [ "NOPASSWD" ]; - } - { - command = "${pkgs.systemd}/bin/reboot"; - options = [ "NOPASSWD" ]; - } - { - command = "${pkgs.systemd}/bin/poweroff"; - options = [ "NOPASSWD" ]; - } - { - command = "/home/matt/nix-config/reset_wifi"; - options = [ "NOPASSWD" ]; - } - ]; - groups = [ "wheel" ]; - }]; - }; - }; - # Configure environment environment = { # List packages installed in system profile. To search, run: diff --git a/modules/apps/sabnzbd/options.nix b/modules/apps/sabnzbd/options.nix index bb264c4..832731b 100644 --- a/modules/apps/sabnzbd/options.nix +++ b/modules/apps/sabnzbd/options.nix @@ -35,7 +35,7 @@ with lib; { tvPath = mkOption { type = types.str; - default = "/mnt/mainpool/Tv"; + default = "/mnt/mainpool/TV"; }; downloadsPath = mkOption { diff --git a/modules/samba/options.nix b/modules/samba/options.nix index a9faea2..282bd60 100644 --- a/modules/samba/options.nix +++ b/modules/samba/options.nix @@ -45,11 +45,11 @@ with lib; { }; createMask = mkOption { type = types.str; - default = "0644"; + default = "0774"; }; directoryMask = mkOption { type = types.str; - default = "0755"; + default = "0775"; }; enableTimeMachine = mkOption { type = types.bool;