hydra: increase cpu usage limit; add minimal fish config
This commit is contained in:
parent
e99c3dafec
commit
0aa8ba4345
|
@ -88,7 +88,7 @@
|
||||||
|
|
||||||
set -gx NOMCOMPAT ${nom-compat}
|
set -gx NOMCOMPAT ${nom-compat}
|
||||||
# for posix compatibility
|
# for posix compatibility
|
||||||
set -gx SHELL zsh
|
set -gx SHELL ${pkgs.zsh}/bin/zsh
|
||||||
|
|
||||||
set -g fish_color_autosuggestion 777 brblack
|
set -g fish_color_autosuggestion 777 brblack
|
||||||
set -g fish_color_command green
|
set -g fish_color_command green
|
||||||
|
|
|
@ -161,14 +161,14 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
nix.distributedBuilds = true;
|
nix.distributedBuilds = true;
|
||||||
# limit CI CPU usage since I'm running everything else off this server too
|
# limit CI CPU usage to 30% since I'm running everything else off this server too
|
||||||
systemd.services.nix-daemon.serviceConfig.CPUQuota = "100%";
|
systemd.services.nix-daemon.serviceConfig.CPUQuota = "240%";
|
||||||
nix.daemonCPUSchedPolicy = "idle";
|
nix.daemonCPUSchedPolicy = "idle";
|
||||||
nix.daemonIOSchedClass = "idle";
|
nix.daemonIOSchedClass = "idle";
|
||||||
systemd.services.hydra-evaluator = lib.mkIf config.services.hydra.enable {
|
systemd.services.hydra-evaluator = lib.mkIf config.services.hydra.enable {
|
||||||
# https://github.com/NixOS/hydra/issues/1186
|
# https://github.com/NixOS/hydra/issues/1186
|
||||||
environment.GC_DONT_GC = "1";
|
environment.GC_DONT_GC = "1";
|
||||||
serviceConfig.CPUQuota = "100%";
|
serviceConfig.CPUQuota = "240%";
|
||||||
serviceConfig.CPUSchedulingPolicy = "idle";
|
serviceConfig.CPUSchedulingPolicy = "idle";
|
||||||
serviceConfig.IOSchedulingClass = "idle";
|
serviceConfig.IOSchedulingClass = "idle";
|
||||||
};
|
};
|
||||||
|
|
|
@ -100,7 +100,16 @@ in {
|
||||||
kitty.terminfo
|
kitty.terminfo
|
||||||
# rxvt-unicode-unwrapped.terminfo
|
# rxvt-unicode-unwrapped.terminfo
|
||||||
]);
|
]);
|
||||||
# TODO: minimal fish config
|
programs.fish.interactiveShellInit = lib.mkIf cfg.minimal ''
|
||||||
|
set -gx SHELL ${pkgs.zsh}/bin/zsh
|
||||||
|
set -g fish_color_autosuggestion 777 brblack
|
||||||
|
set -g fish_color_command green
|
||||||
|
set -g fish_color_operator white
|
||||||
|
set -g fish_color_param white
|
||||||
|
set -g fish_key_bindings fish_vi_key_bindings
|
||||||
|
set -g fish_cursor_insert line
|
||||||
|
set -g fish_cursor_replace underscore
|
||||||
|
'';
|
||||||
programs.vim = lib.mkIf cfg.minimal {
|
programs.vim = lib.mkIf cfg.minimal {
|
||||||
defaultEditor = lib.mkDefault true;
|
defaultEditor = lib.mkDefault true;
|
||||||
package = pkgs.vim-full.customize {
|
package = pkgs.vim-full.customize {
|
||||||
|
|
Loading…
Reference in a new issue