From db947bbeb5987d62b8df9edf79903690d5273759 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Tue, 5 Dec 2023 15:51:47 -0500 Subject: [PATCH] make 'eco' apply to commands not the shell --- hosts/levi/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/levi/default.nix b/hosts/levi/default.nix index 29efc82..bae8147 100644 --- a/hosts/levi/default.nix +++ b/hosts/levi/default.nix @@ -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;