make 'eco' apply to commands not the shell

This commit is contained in:
Sean Buckley 2023-12-05 15:51:47 -05:00
parent 8e546b424a
commit db947bbeb5

View file

@ -30,9 +30,11 @@ in
"/var/log/journal"
];
programs.bash.interactiveShellInit = ''
alias eco='taskset -p ff000 $$'
'';
environment.systemPackages = [
(pkgs.writeShellScriptBin "eco" ''
exec taskset ff000 "$@"
'')
];
boot = {
loader.systemd-boot.enable = true;