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

@@ -12,29 +12,17 @@
nixpkgs.hostPlatform = "x86_64-linux";
# systemd-boot on the EFI system partition.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_cachyos;
hardware.enableRedistributableFirmware = true;
hardware.graphics = {
enable = true;
enable32Bit = true;
};
# RAM-backed swap, no on-disk swap partition.
zramSwap.enable = true;
networking.networkmanager.enable = true;
registry.address.zeus.self = "10.23.50.221";
modules.network.ssh.enable = true;
modules.network.ssh.hostKeys.sopsFile = ../../secrets/zeus.yaml;
modules.network.ssh.userKey.sopsFile = ../../secrets/zeus.yaml;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;