From f424c5e6512f9822a91801bf15344bad34019c3e Mon Sep 17 00:00:00 2001 From: Kj Tsanaktsidis Date: Sun, 7 Sep 2025 16:35:01 +1000 Subject: add htop --- kj-laptop01/configuration.nix | 44 +++++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 20 deletions(-) (limited to 'kj-laptop01/configuration.nix') diff --git a/kj-laptop01/configuration.nix b/kj-laptop01/configuration.nix index d491da7..47daaa8 100644 --- a/kj-laptop01/configuration.nix +++ b/kj-laptop01/configuration.nix @@ -10,6 +10,22 @@ imports = [ ./disk-config.nix ]; + + nix = { + extraOptions = '' + experimental-features = ca-derivations nix-command flakes + ''; + settings = { + substituters = [ + "https://cache.nixos.org" + "https://cache.ngi0.nixos.org/" + ]; + trusted-public-keys = [ + "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA=" + ]; + }; + }; + sops = { defaultSopsFile = ./secrets.yaml; age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; @@ -27,6 +43,12 @@ boot.loader.systemd-boot.enable = true; system.stateVersion = "25.05"; + swapDevices = [ + { + device = "/swap/swapfile"; + size = 32768; + } + ]; security.sudo.enable = true; users.mutableUsers = false; @@ -81,25 +103,7 @@ ]; }; - nix = { - extraOptions = '' - experimental-features = ca-derivations nix-command flakes - ''; - settings = { - substituters = [ - "https://cache.nixos.org" - "https://cache.ngi0.nixos.org/" - ]; - trusted-public-keys = [ - "cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA=" - ]; - }; - }; - - swapDevices = [ - { - device = "/swap/swapfile"; - size = 32768; - } + environment.systemPackages = with pkgs; [ + htop ]; } -- cgit v1.2.3