Compare commits

..

2 commits

Author SHA1 Message Date
chayleaf de888fe28e update inputs 2023-07-28 22:36:29 +07:00
chayleaf 2b51eb1610 change update script for ci branch 2023-07-28 22:36:29 +07:00
3 changed files with 11 additions and 15 deletions

View file

@ -128,12 +128,8 @@ in {
} }
]; ];
# limit CI CPU usage since I'm running everything else off this server too # limit CI CPU usage since I'm running everything else off this server too
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%"; systemd.services.nix-daemon.serviceConfig.CPUQuota = "50%";
nix.daemonCPUSchedPolicy = "idle"; systemd.services.hydra-evaluator.serviceConfig.CPUQuota = "50%";
nix.daemonIOSchedClass = "idle";
systemd.services.hydra-evaluator.serviceConfig.CPUQuota = "100%";
systemd.services.hydra-evaluator.serviceConfig.CPUSchedulingPolicy = "idle";
systemd.services.hydra-evaluator.serviceConfig.IOSchedulingClass = "idle";
programs.ccache.enable = true; programs.ccache.enable = true;
services.nginx.statusPage = true; services.nginx.statusPage = true;

View file

@ -829,6 +829,10 @@ in {
extraOptions = "-i ${netAddresses.lan4} -p 6969 -P 6969 -p 80"; extraOptions = "-i ${netAddresses.lan4} -p 6969 -P 6969 -p 80";
}; };
# it takes a stupidly long time when done via qemu
# (also it's supposed to be disabled by default but it was enabled for me, why?)
documentation.man.generateCaches = false;
impermanence.directories = [ impermanence.directories = [
# for wireguard key # for wireguard key
{ directory = /secrets; mode = "0000"; } { directory = /secrets; mode = "0000"; }

View file

@ -89,15 +89,12 @@
# rxvt-unicode-unwrapped.terminfo # rxvt-unicode-unwrapped.terminfo
vim vim
]); ]);
# this is supposed to default to false, but it doesn't because of nixos fish module
documentation.man.generateCaches = lib.mkOverride 999 false;
# and we don't need html files and so on on minimal machines (it's not like I ever use it anyway)
# as a bonus, this disables the HTML NixOS manual which takes a while to build and which I
# definitely don't need on minimal machines
documentation.doc.enable = lib.mkIf cfg.minimal (lib.mkDefault false);
programs.fish.enable = true; programs.fish.enable = true;
# conflicts with bash module's mkDefault /*programs.zsh = {
users.defaultUserShell = lib.mkOverride 999 pkgs.fish; enable = true;
enableBashCompletion = true;
};*/
users.defaultUserShell = lib.mkIf cfg.minimal pkgs.fish;
users.users.${cfg.mainUsername} = { users.users.${cfg.mainUsername} = {
uid = 1000; uid = 1000;
isNormalUser = true; isNormalUser = true;
@ -105,7 +102,6 @@
}; };
# nixos-hardware uses mkDefault here, so we use slightly higher priority # nixos-hardware uses mkDefault here, so we use slightly higher priority
services.xserver.libinput.enable = lib.mkOverride 999 (!cfg.minimal); services.xserver.libinput.enable = lib.mkOverride 999 (!cfg.minimal);
# TODO: minimal fish/vim config
/* /*
services.xserver = { services.xserver = {
enable = true; enable = true;