Compare commits

..

4 commits

3 changed files with 15 additions and 11 deletions

View file

@ -128,8 +128,12 @@ in {
}
];
# limit CI CPU usage since I'm running everything else off this server too
systemd.services.nix-daemon.serviceConfig.CPUQuota = "50%";
systemd.services.hydra-evaluator.serviceConfig.CPUQuota = "50%";
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%";
nix.daemonCPUSchedPolicy = "idle";
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;
services.nginx.statusPage = true;

View file

@ -829,10 +829,6 @@ in {
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 = [
# for wireguard key
{ directory = /secrets; mode = "0000"; }

View file

@ -89,12 +89,15 @@
# rxvt-unicode-unwrapped.terminfo
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.zsh = {
enable = true;
enableBashCompletion = true;
};*/
users.defaultUserShell = lib.mkIf cfg.minimal pkgs.fish;
# conflicts with bash module's mkDefault
users.defaultUserShell = lib.mkOverride 999 pkgs.fish;
users.users.${cfg.mainUsername} = {
uid = 1000;
isNormalUser = true;
@ -102,6 +105,7 @@
};
# nixos-hardware uses mkDefault here, so we use slightly higher priority
services.xserver.libinput.enable = lib.mkOverride 999 (!cfg.minimal);
# TODO: minimal fish/vim config
/*
services.xserver = {
enable = true;