mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
make 'eco' apply to commands not the shell
This commit is contained in:
parent
8e546b424a
commit
db947bbeb5
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue