diff options
Diffstat (limited to 'modules/base.nix')
-rwxr-xr-x | modules/base.nix | 47 |
1 files changed, 29 insertions, 18 deletions
diff --git a/modules/base.nix b/modules/base.nix index a1559fb..6597a97 100755 --- a/modules/base.nix +++ b/modules/base.nix @@ -1,16 +1,20 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: { - imports = - [ - ./packages/vim.nix - ./users/Rory.nix - ./extra-substituters.nix - ]; + imports = [ + ./packages/vim.nix + ./users/Rory.nix + ./extra-substituters.nix + ]; boot = { initrd.systemd.enable = true; - kernelParams = [ + kernelParams = [ "memory_hotplug.memmap_on_memory=1" "memhp_default_state=online" "net.core.default_qdisc=fq" @@ -60,14 +64,19 @@ # allowedTCPPorts = [ ... ]; # allowedUDPPorts = [ ... ]; }; - nameservers = [ "1.1.1.1" "1.0.0.1" "8.8.8.8" "8.4.4.8" ]; + nameservers = [ + "1.1.1.1" + "1.0.0.1" + "8.8.8.8" + "8.4.4.8" + ]; }; environment.etc."resolv.conf".text = '' - nameserver 8.8.8.8 - nameserver 8.4.4.8 - nameserver 1.1.1.1 - nameserver 1.0.0.1 - ''; + nameserver 8.8.8.8 + nameserver 8.4.4.8 + nameserver 1.1.1.1 + nameserver 1.0.0.1 + ''; i18n.defaultLocale = "en_US.UTF-8"; @@ -77,7 +86,7 @@ #allow more logins in cases where i have many ssh keys on a system extraConfig = '' MaxAuthTries 32 - ''; + ''; }; resolved = { enable = lib.mkForce false; @@ -90,7 +99,7 @@ sleep.extraConfig = '' AllowSuspend=no AllowHibernation=no - ''; + ''; }; environment.systemPackages = with pkgs; [ @@ -120,7 +129,6 @@ unzip brotli - # - zsh zsh zsh-powerlevel10k @@ -135,7 +143,10 @@ ''; nix = { settings = { - experimental-features = [ "nix-command" "flakes" ]; + experimental-features = [ + "nix-command" + "flakes" + ]; auto-optimise-store = true; trusted-users = [ "@wheel" ]; }; |