diff --git a/config/home/bash.nix b/config/home/bash.nix index 638ce22..82a116f 100644 --- a/config/home/bash.nix +++ b/config/home/bash.nix @@ -1,6 +1,7 @@ { config, lib, pkgs, ... }: -let inherit (import ../../options.nix) flakeDir flakePrev flakeBackup theShell; in +let inherit (import ../../options.nix) flakeDir flakePrev + hostname flakeBackup theShell; in lib.mkIf (theShell == "bash") { # Configure Bash programs.bash = { @@ -24,8 +25,8 @@ lib.mkIf (theShell == "bash") { }; shellAliases = { sv="sudo nvim"; - flake-rebuild="nh os switch --nom --hostname ${flakeDir}"; - flake-update="nh os switch --nom --hostname ${flakeDir} --update"; + flake-rebuild="nh os switch --nom --hostname ${hostname}"; + flake-update="nh os switch --nom --hostname ${hostname} --update"; gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot"; v="nvim"; ls="lsd";