From ac6b88d99955121c463d369fc8d20ac676e11605 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Thu, 29 Feb 2024 13:16:08 +0100 Subject: [PATCH] Move the shellAliases --- home-manager/modules/common/default.nix | 29 +++++++++++++------------ 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/home-manager/modules/common/default.nix b/home-manager/modules/common/default.nix index 1ba00c1..7b50f6e 100644 --- a/home-manager/modules/common/default.nix +++ b/home-manager/modules/common/default.nix @@ -8,7 +8,21 @@ # Home Manager needs a bit of information about you and the # paths it should manage. programs = { - bash.enable = true; + bash = { + enable = true; + shellAliases = { + nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system"; + rebuild = '' + nixos-rebuild -j auto switch --use-remote-sudo + ''; + htop = "btm"; + find-garbage = "ls -l /nix/var/nix/gcroots/auto/ | sort | grep '/home/'"; + vm = "vim"; + less = "less -FiRX"; + ls = "ls -lhF --color=auto"; + btm = "btm --color default-light"; + }; + }; home-manager.enable = true; vim = { enable = true; @@ -55,18 +69,5 @@ HISTTIMEFORMAT = "%F %T "; NIXPKGS_ALLOW_UNFREE = "1"; }; - - shellAliases = { - nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system"; - rebuild = '' - nixos-rebuild -j auto switch --use-remote-sudo - ''; - htop = "btm"; - find-garbage = "ls -l /nix/var/nix/gcroots/auto/ | sort | grep '/home/'"; - vm = "vim"; - less = "less -FiRX"; - ls = "ls -lhF"; - btm = "btm --color default-light"; - }; }; }