refactor(nixos): centralize physical host defaults

This commit was merged in pull request #29.
This commit is contained in:
2026-09-08 16:58:20 -04:00
parent a7bc7c7667
commit 3a3c612a83
4 changed files with 10 additions and 40 deletions

View File

@@ -6,6 +6,7 @@
let
cfg = config.modules.host;
user = config.user;
hostSecrets = ../secrets + "/${config.networking.hostName}.yaml";
passwordSecret = "${user.name}-password";
in
{
@@ -24,7 +25,16 @@ in
nix.optimise.automatic = true;
nix.optimise.dates = [ "Thu 03:45" ];
boot.loader.systemd-boot.enable = true;
boot.loader.systemd-boot.configurationLimit = 15;
boot.loader.efi.canTouchEfiVariables = true;
hardware.enableRedistributableFirmware = true;
zramSwap.enable = true;
modules.network.ssh.enable = true;
modules.network.ssh.hostKeys.sopsFile = hostSecrets;
modules.network.ssh.userKey.sopsFile = hostSecrets;
services.xserver.xkb.layout = "us";
services.xserver.xkb.options = "caps:escape_shifted_capslock";