adding nix for home server

This commit is contained in:
2024-12-30 12:17:47 -07:00
parent 2d2c56876b
commit ec19304ccb

View File

@@ -1,8 +1,5 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
imports = imports =
@@ -310,6 +307,8 @@ k9s:
#NoNewPrivileges = false; #NoNewPrivileges = false;
ProtectHome = false; ProtectHome = false;
#RuntimeDirectoryPreserve = "yes"; #RuntimeDirectoryPreserve = "yes";
Restart = lib.mkForce "always";
#RuntimeMaxSec = "7d";
}; };
extraPackages = with pkgs; [ extraPackages = with pkgs; [
docker docker
@@ -321,11 +320,13 @@ k9s:
]; ];
}; };
}; };
# services.cron = {
# enable = true;
# systemCronJobs = [
# "*/5 * * * * root date >> /tmp/cron.log"
# ];
# };
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = false; networking.firewall.enable = false;
# networking.firewall.trustedInterfaces = [ "docker0" ]; # networking.firewall.trustedInterfaces = [ "docker0" ];