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" "/var/log/journal"
]; ];
programs.bash.interactiveShellInit = '' environment.systemPackages = [
alias eco='taskset -p ff000 $$' (pkgs.writeShellScriptBin "eco" ''
''; exec taskset ff000 "$@"
'')
];
boot = { boot = {
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;