diff --git a/auxin/configuration.nix b/auxin/configuration.nix index 33d6190..704f6b2 100644 --- a/auxin/configuration.nix +++ b/auxin/configuration.nix @@ -12,7 +12,7 @@ nix = { package = pkgs.nixFlakes; optimise.automatic = true; - gc.automatic = true; + # gc.automatic = true; extraOptions = '' experimental-features = nix-command flakes ''; @@ -26,8 +26,8 @@ networkmanager.enable = true; # Easiest to use and most distros use this by default. firewall = { enable = true; - allowedUDPPorts = [22 80 443 2222 25565 8080 8842 8191 3001 8096 7359 8420 9000 8089]; - allowedTCPPorts = [22 80 443 2222 25565 8080 8842 8191 3001 8096 7359 8420 9000 8089]; + allowedUDPPorts = [22 80 443 2222 25565 8080 8842 8191 3001 8096 7359 8420 8888 9000 8089]; + allowedTCPPorts = [22 80 443 2222 25565 8080 8842 8191 3001 8096 7359 8420 8888 9000 8089]; }; }; # Set your time zone. @@ -38,20 +38,20 @@ xserver = { enable = true; - displayManager.sddm = { - enable = true; - settings = { - Autologin = { - Session = "kodi.desktop"; - User = "mira"; - }; - }; - }; desktopManager.xfce.enable = true; # Kodi desktopManager.kodi.enable = true; }; + displayManager.sddm = { + enable = true; + settings = { + Autologin = { + Session = "kodi.desktop"; + User = "mira"; + }; + }; + }; # smartd smartd.enable = true; @@ -194,6 +194,12 @@ # started in user sessions. # programs.mtr.enable = true; programs = { + nh = { + enable = true; + clean.enable = true; + clean.extraArgs = "--keep-since 4d --keep 3"; + flake = "/etc/nixos/"; + }; gnupg.agent = { enable = true; enableSSHSupport = true; @@ -258,7 +264,12 @@ # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # TODO: + powerManagement.enable = false; systemd = { + targets = { + sleep.enable = false; + suspend.enable = false; + }; timers."qbittorrent-healthcheck" = { wantedBy = ["timers.target"]; timerConfig = { diff --git a/flake.lock b/flake.lock index 31c74e2..dbf9696 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1715534503, - "narHash": "sha256-5ZSVkFadZbFP1THataCaSf0JH2cAH3S29hU9rrxTEqk=", + "lastModified": 1715787315, + "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2057814051972fa1453ddfb0d98badbea9b83c06", + "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "type": "github" }, "original": {