mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: add performance profile, move things around somewhat
This commit is contained in:
parent
2189d0592f
commit
e16019c75b
7 changed files with 45 additions and 66 deletions
28
nixos/profiles/graphical/distributed.nix
Normal file
28
nixos/profiles/graphical/distributed.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{config, ...}: {
|
||||
programs.ssh.extraConfig = ''
|
||||
Host daiyousei-build
|
||||
HostName daiyousei.inskip.me
|
||||
User root
|
||||
IdentityAgent /run/user/${config.users.users.kat.uid}/gnupg/S.gpg-agent.ssh
|
||||
ControlMaster auto
|
||||
ControlPath ${config.users.users.kat.home}/.ssh/master-%r@%n:%p
|
||||
ControlPersist 10m
|
||||
'';
|
||||
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
|
||||
'';
|
||||
};
|
||||
}
|
||||
7
nixos/profiles/performance/scx.nix
Normal file
7
nixos/profiles/performance/scx.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{pkgs, ...}: {
|
||||
services.scx = {
|
||||
enable = true;
|
||||
package = pkgs.scx_git.full;
|
||||
scheduler = "scx_lavd";
|
||||
};
|
||||
}
|
||||
3
nixos/profiles/performance/zram.nix
Normal file
3
nixos/profiles/performance/zram.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
zramSwap.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue