From 9640bbea56d3707010c41740ecb6d494ef42330b Mon Sep 17 00:00:00 2001 From: vali Date: Fri, 12 Apr 2024 16:12:02 +0200 Subject: [PATCH] fixed updating --- modules/cli/zsh.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/cli/zsh.nix b/modules/cli/zsh.nix index c93c550..40952c1 100644 --- a/modules/cli/zsh.nix +++ b/modules/cli/zsh.nix @@ -2,6 +2,7 @@ with lib; let cfg = config.myOptions.programs.zsh; username = config.myOptions.other.system.username; + hostname = config.myOptions.other.system.hostname; gitPath = config.myOptions.other.system.gitPath; in { options.myOptions.programs.zsh = { @@ -55,7 +56,7 @@ in { cd = "z"; nv = "nvim"; #TODO fix hardcoding of git repo path and profile name - update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"${gitPath}#mars\" --log-format internal-json |& nom --json"; + update = "sudo -p 'password: ' echo 'Your daughter is just a fork of your wife.' && sudo nixos-rebuild switch --flake \"${gitPath}#${hostname}\" --log-format internal-json |& nom --json"; } // cfg.extraAliases; initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof";