From abc28a07949f26c8d2afd1f73fd30cf428d2a40f Mon Sep 17 00:00:00 2001 From: "Emma@Rory" Date: Fri, 8 Sep 2023 15:01:16 +0200 Subject: Some refactoring work... --- modules/base.nix | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'modules') diff --git a/modules/base.nix b/modules/base.nix index c89f963..7364dfa 100755 --- a/modules/base.nix +++ b/modules/base.nix @@ -6,12 +6,14 @@ ./packages/vim.nix ./users/Rory.nix ]; - boot.kernelParams = [ - "memory_hotplug.memmap_on_memory=1" - "memhp_default_state=online" - "net.core.default_qdisc=fq" - "net.ipv4.tcp_congestion_control=bbr" - ]; + boot = { + kernelParams = [ + "memory_hotplug.memmap_on_memory=1" + "memhp_default_state=online" + "net.core.default_qdisc=fq" + "net.ipv4.tcp_congestion_control=bbr" + ]; + } networking = { hostName = lib.mkDefault "Rory-nix-base"; firewall = { @@ -46,9 +48,10 @@ wget neofetch lnav - zsh + pciutils git lsd + duf htop btop #sshfs @@ -77,10 +80,19 @@ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=" ]; - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.auto-optimise-store = true; - nixpkgs.config.allowUnfree = true; - security.sudo.wheelNeedsPassword = false; - security.polkit.enable = true; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + }; + nixpkgs = { + config.allowUnfree = true; + }; + security = { + polkit.enable = true; + sudo.wheelNeedsPassword = false; + }; + system.stateVersion = "22.11"; # DO NOT EDIT! } -- cgit 1.4.1