major refactor
This commit is contained in:
parent
20472f8d1b
commit
d778875a1b
32 changed files with 495 additions and 428 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
networking.hostName = "c2";
|
||||
hd.desktop.enable = true;
|
||||
|
||||
age.identityPaths = [
|
||||
"/root/.ssh/id_ed25519"
|
||||
|
|
@ -8,7 +9,6 @@
|
|||
|
||||
imports = with inputs.nixos-hardware.nixosModules; [
|
||||
./hardware-configuration.nix
|
||||
# common-cpu-intel
|
||||
common-pc-laptop
|
||||
common-pc-laptop-ssd
|
||||
];
|
||||
|
|
@ -23,12 +23,9 @@
|
|||
device = "nodev";
|
||||
};
|
||||
};
|
||||
|
||||
resumeDevice = "/dev/disk/by-label/nixswap";
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_6_12;
|
||||
kernel.sysctl."kernel.sysrq" = 1;
|
||||
|
||||
initrd.systemd.network.wait-online.enable = false;
|
||||
};
|
||||
|
||||
|
|
@ -40,36 +37,6 @@
|
|||
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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue