summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorEmma@Rory <root@rory.gay>2023-09-08 15:01:16 +0200
committerEmma@Rory <root@rory.gay>2023-09-08 15:01:16 +0200
commitabc28a07949f26c8d2afd1f73fd30cf428d2a40f (patch)
tree1844a849383d27e3def27db8a859e3c14a375073 /modules
parentSuccessful build on RoryNix (diff)
downloadRory-Open-Architecture-abc28a07949f26c8d2afd1f73fd30cf428d2a40f.tar.xz
Some refactoring work...
Diffstat (limited to '')
-rwxr-xr-xmodules/base.nix36
1 files changed, 24 insertions, 12 deletions
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!
 }