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 = [ imports = [
]; ];
# Setup nixbuild.net, since this laptop is somewhat under powered
programs.ssh.extraConfig = '' programs.ssh.extraConfig = ''
Host eu.nixbuild.net Host eu.nixbuild.net
PubkeyAcceptedKeyTypes ssh-ed25519 PubkeyAcceptedKeyTypes ssh-ed25519
@ -15,7 +16,6 @@
IPQoS throughput IPQoS throughput
IdentityFile /home/nathan/.ssh/id_ed25519 IdentityFile /home/nathan/.ssh/id_ed25519
''; '';
programs.ssh.knownHosts = { programs.ssh.knownHosts = {
nixbuild = { nixbuild = {
hostNames = [ "eu.nixbuild.net" ]; hostNames = [ "eu.nixbuild.net" ];
@ -23,14 +23,17 @@
}; };
}; };
# Configure nix
nix = { nix = {
settings = { settings = {
# Auto optimize the store after every action
auto-optimise-store = true; auto-optimise-store = true;
trusted-users = [ trusted-users = [
"root" "root"
"nathan" "nathan"
]; ];
}; };
# GC agressively
gc = { gc = {
automatic = true; automatic = true;
dates = "hourly"; dates = "hourly";
@ -50,9 +53,30 @@
]; ];
}; };
# Bootloader. # Bootloader and plymouth
boot.loader.systemd-boot.enable = true; boot = {
boot.loader.efi.canTouchEfiVariables = true; 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. networking.hostName = "crash"; # Define your hostname.