From ad2c3a46b70b62f4ac8a7f71821d8835a0d8b8b4 Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Tue, 20 Jan 2026 10:54:15 +1000 Subject: [PATCH] Add some uncommitted work machine config --- alex/core.nix | 2 ++ hosts/armitage/configuration.nix | 1 - hosts/modules/base.nix | 6 ------ hosts/modules/desktop.nix | 1 + hosts/modules/laptop.nix | 1 + 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/alex/core.nix b/alex/core.nix index 0858964..940502a 100644 --- a/alex/core.nix +++ b/alex/core.nix @@ -95,6 +95,8 @@ zoxide ]; + programs.command-not-found.enable = true; + # basic configuration of git, please change to your own programs.git = { enable = true; diff --git a/hosts/armitage/configuration.nix b/hosts/armitage/configuration.nix index 2eeb99f..834ac42 100644 --- a/hosts/armitage/configuration.nix +++ b/hosts/armitage/configuration.nix @@ -3,7 +3,6 @@ # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, inputs, ... }: - { imports = [ # Include the results of the hardware scan. diff --git a/hosts/modules/base.nix b/hosts/modules/base.nix index d1e473d..07d95d2 100644 --- a/hosts/modules/base.nix +++ b/hosts/modules/base.nix @@ -16,12 +16,6 @@ # break fish man completion and apropos. documentation.man.generateCaches = false; - # enable a 1GB swap file - swapDevices = [{ - device = "/swapfile"; - size = 1024; - }]; - # enable zram. not totally sure if this does it in physical ram or just swap zramSwap.enable = true; diff --git a/hosts/modules/desktop.nix b/hosts/modules/desktop.nix index df38831..39d200e 100644 --- a/hosts/modules/desktop.nix +++ b/hosts/modules/desktop.nix @@ -14,6 +14,7 @@ ./certs/alt-caddy.crt ]; + # Enable the GNOME Desktop Environment. services.displayManager.gdm = { enable = true; wayland = true; diff --git a/hosts/modules/laptop.nix b/hosts/modules/laptop.nix index a7dfb4b..3de31ec 100644 --- a/hosts/modules/laptop.nix +++ b/hosts/modules/laptop.nix @@ -3,6 +3,7 @@ services.thermald.enable = true; services.power-profiles-daemon.enable = false; + services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore"; services.tlp = { enable = true;