From 89082006fee1dccdd4d68f961f659a38ca1617d5 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 10 Jan 2025 16:07:05 -0500 Subject: [PATCH] Crash tweaks --- nixos/machines/crash/configuration.nix | 32 ++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/nixos/machines/crash/configuration.nix b/nixos/machines/crash/configuration.nix index beb8834..9a1e6a5 100644 --- a/nixos/machines/crash/configuration.nix +++ b/nixos/machines/crash/configuration.nix @@ -8,6 +8,7 @@ imports = [ ]; + # Setup nixbuild.net, since this laptop is somewhat under powered programs.ssh.extraConfig = '' Host eu.nixbuild.net PubkeyAcceptedKeyTypes ssh-ed25519 @@ -15,7 +16,6 @@ IPQoS throughput IdentityFile /home/nathan/.ssh/id_ed25519 ''; - programs.ssh.knownHosts = { nixbuild = { hostNames = [ "eu.nixbuild.net" ]; @@ -23,14 +23,17 @@ }; }; + # Configure nix nix = { settings = { + # Auto optimize the store after every action auto-optimise-store = true; trusted-users = [ "root" "nathan" ]; }; + # GC agressively gc = { automatic = true; dates = "hourly"; @@ -50,9 +53,30 @@ ]; }; - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + # Bootloader and plymouth + boot = { + loader = { + systemd-boot = { + enable = true; + consoleMode = "auto"; + }; + efi.canTouchEfiVariables = true; + }; + plymouth = { + enable = true; + }; + }; + + # Steam setup + programs.steam = { + enable = true; + gamescopeSession = { + enable = true; + args = [ + "--expose-wayland" + ]; + }; + }; networking.hostName = "crash"; # Define your hostname.