Compare commits
4 commits
de888fe28e
...
17b0ab88a3
Author | SHA1 | Date | |
---|---|---|---|
chayleaf | 17b0ab88a3 | ||
chayleaf | 6d0dbf6469 | ||
chayleaf | fe587594ff | ||
chayleaf | 5d21e5281e |
|
@ -128,8 +128,12 @@ 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 = "50%";
|
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%";
|
||||||
systemd.services.hydra-evaluator.serviceConfig.CPUQuota = "50%";
|
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;
|
programs.ccache.enable = true;
|
||||||
|
|
||||||
services.nginx.statusPage = true;
|
services.nginx.statusPage = true;
|
||||||
|
|
|
@ -829,10 +829,6 @@ 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"; }
|
||||||
|
|
|
@ -89,12 +89,15 @@
|
||||||
# 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;
|
||||||
/*programs.zsh = {
|
# conflicts with bash module's mkDefault
|
||||||
enable = true;
|
users.defaultUserShell = lib.mkOverride 999 pkgs.fish;
|
||||||
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;
|
||||||
|
@ -102,6 +105,7 @@
|
||||||
};
|
};
|
||||||
# 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;
|
||||||
|
|
Loading…
Reference in a new issue