This commit is contained in:
Mira 2024-07-03 12:58:48 -04:00
parent 89d0d8ac04
commit 3212fbebbf
2 changed files with 26 additions and 15 deletions

View file

@ -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,6 +38,11 @@
xserver = {
enable = true;
desktopManager.xfce.enable = true;
# Kodi
desktopManager.kodi.enable = true;
};
displayManager.sddm = {
enable = true;
settings = {
@ -47,11 +52,6 @@
};
};
};
desktopManager.xfce.enable = true;
# Kodi
desktopManager.kodi.enable = true;
};
# 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 = {

6
flake.lock generated
View file

@ -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": {