cfg/host/c2/default.nix
2025-10-06 10:51:24 +02:00

59 lines
1.2 KiB
Nix

{ inputs, ... }:
{
networking.hostName = "c2";
age.identityPaths = [
"/root/.ssh/id_ed25519"
];
imports = with inputs.nixos-hardware.nixosModules; [
./hardware-configuration.nix
common-cpu-intel
common-pc-laptop
common-pc-laptop-ssd
];
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.resumeDevice = "/dev/disk/by-label/nixswap";
# Fix for touchpad physical click not working
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ];
powerManagement = {
enable = true;
cpuFreqGovernor = "ondemand";
};
hd.desktop.enable = true;
nix = {
buildMachines = [
{
hostName = "noravm";
sshUser = "nixremote";
system = "x86_64-linux";
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 2;
supportedFeatures = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
];
mandatoryFeatures = [ ];
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
networking.firewall = {
enable = true;
};
# ====== DON'T CHANGE ======
system.stateVersion = "25.05";
}