feat: add performance profile, move things around somewhat

This commit is contained in:
Kat Inskip 2025-10-19 14:27:49 -07:00
parent 2189d0592f
commit e16019c75b
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
7 changed files with 45 additions and 66 deletions

View file

@ -1,5 +1,6 @@
_: let
hostConfig = {
pkgs,
tree,
modulesPath,
...
@ -28,6 +29,10 @@ _: let
web
]);
environment.systemPackages = [
pkgs.numix-icon-theme
];
# TODO: Add config.microvm.stateDir to backup schedule?
# TODO: figure out updateFlake?
#microvm = {

View file

@ -50,6 +50,7 @@ _: let
quiet-boot
wireless
gaming
performance
dev
])
++ (with tree.nixos.environments; [
@ -172,30 +173,6 @@ _: let
networking.hostId = "c3b94e85";
programs.ssh.extraConfig = ''
Host daiyousei-build
HostName 140.238.156.121
User root
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
'';
nix = {
buildMachines = [
{
hostName = "daiyousei-build";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
mandatoryFeatures = [];
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
@ -206,14 +183,6 @@ _: let
powerManagement.enable = true;
};
services.scx = {
enable = false;
package = pkgs.scx_git.full;
scheduler = "scx_lavd";
};
zramSwap.enable = true;
boot = {
zfs.requestEncryptionCredentials = true;
loader = {

View file

@ -1,7 +1,6 @@
_: let
hostConfig = {
tree,
pkgs,
lib,
config,
...
@ -53,6 +52,7 @@ _: let
wireless
laptop
gaming
performance
])
++ (with tree.nixos.environments; [
niri
@ -106,39 +106,6 @@ _: let
];
};
services.scx = {
enable = true;
package = pkgs.scx_git.full;
scheduler = "scx_lavd";
};
zramSwap.enable = true;
programs.ssh.extraConfig = ''
Host daiyousei-build
HostName 140.238.156.121
User root
IdentityAgent /run/user/1000/gnupg/S.gpg-agent.ssh
'';
nix = {
buildMachines = [
{
hostName = "daiyousei-build";
system = "aarch64-linux";
protocol = "ssh-ng";
maxJobs = 100;
speedFactor = 1;
supportedFeatures = ["benchmark" "big-parallel" "kvm"];
mandatoryFeatures = [];
}
];
distributedBuilds = true;
extraOptions = ''
builders-use-substitutes = true
'';
};
# optional, useful when the builder has a faster internet connection than yours
services = {
printing.enable = true;