Add network configuration in a different module

This commit is contained in:
2020-04-18 21:04:14 +02:00
parent c754716596
commit 9f39802d28
3 changed files with 56 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
{
# Kernel configuration
boot = {
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "zfs.zfs_arc_max=536870912" ];
kernelModules = [ "i915" "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
@@ -44,4 +45,15 @@
# Clean tmp directory on shutdown
boot.cleanTmpDir = true;
# Rotate logs after 7 days
services.journald.extraConfig = "SystemMaxFiles=7";
# Allow propietary software
nixpkgs.config.allowUnfree = true;
# Import other configuration modules
imports = [
./modules/networking.nix
];
}