adding nix for home server
This commit is contained in:
@@ -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 = {
|
||||||
# Open ports in the firewall.
|
# enable = true;
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# systemCronJobs = [
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# "*/5 * * * * root date >> /tmp/cron.log"
|
||||||
# Or disable the firewall altogether.
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
# networking.firewall.trustedInterfaces = [ "docker0" ];
|
# networking.firewall.trustedInterfaces = [ "docker0" ];
|
||||||
|
|
||||||
Reference in New Issue
Block a user