Crash tweaks

This commit is contained in:
Nathan McCarty 2025-01-10 16:07:05 -05:00
parent 60b23897bf
commit 89082006fe

View file

@ -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.