fixed updating

This commit is contained in:
vali 2024-04-12 16:12:02 +02:00
commit d467afe3d3

View file

@ -2,6 +2,7 @@
with lib; let with lib; let
cfg = config.myOptions.programs.zsh; cfg = config.myOptions.programs.zsh;
username = config.myOptions.other.system.username; username = config.myOptions.other.system.username;
hostname = config.myOptions.other.system.hostname;
gitPath = config.myOptions.other.system.gitPath; gitPath = config.myOptions.other.system.gitPath;
in { in {
options.myOptions.programs.zsh = { options.myOptions.programs.zsh = {
@ -55,7 +56,7 @@ in {
cd = "z"; cd = "z";
nv = "nvim"; nv = "nvim";
#TODO fix hardcoding of git repo path and profile name #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; } // cfg.extraAliases;
initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof"; initExtraFirst = mkIf cfg.profiling "zmodload zsh/zprof";