From db0a421bc593bbd3affca14e39db9e1bce09b810 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 28 Feb 2025 05:09:13 +0800 Subject: [PATCH] refactor(bash): move bash home-manager config to modules/home-sh.nix --- modules/home-sh.nix | 9 +++++++++ users/rafiq/default.nix | 7 +------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 modules/home-sh.nix diff --git a/modules/home-sh.nix b/modules/home-sh.nix new file mode 100644 index 0000000..d656add --- /dev/null +++ b/modules/home-sh.nix @@ -0,0 +1,9 @@ +{ + programs.bash = { + enable = true; + shellAliases = { + rebuild = "sudo nixos-rebuild switch --flake"; + gs = "git status"; + }; + }; +} diff --git a/users/rafiq/default.nix b/users/rafiq/default.nix index b29d359..76e9e25 100644 --- a/users/rafiq/default.nix +++ b/users/rafiq/default.nix @@ -4,6 +4,7 @@ imports = [ ../../modules/home-git.nix ../../modules/home-tmux.nix + ../../modules/home-sh.nix ]; home = { @@ -19,12 +20,6 @@ }; programs = { - bash = { - enable = true; - shellAliases = { - rebuild = "sudo nixos-rebuild switch --flake"; - }; - }; tealdeer = { enable = true; enableAutoUpdates = true;