diff --git a/home-manager/roles/fetch-banking-timer.nix b/home-manager/roles/fetch-banking-timer.nix index 2c0863df..eb0c9e6b 100644 --- a/home-manager/roles/fetch-banking-timer.nix +++ b/home-manager/roles/fetch-banking-timer.nix @@ -4,13 +4,9 @@ Unit.Description = "Fetch banking"; Service = { Type = "oneshot"; - Environment = "PATH=${ - lib.makeBinPath [ pkgs.coreutils pkgs.git pkgs.pass pkgs.gnupg ] - }"; - ExecStart = toString (pkgs.writeShellScript "fetch-banking" '' - cd ~/git/buchhaltung - exec ${pkgs.nix}/bin/nix develop -c ${pkgs.nix}/bin/nix run ".#autoupdate" - ''); + Environment = "PATH=${lib.makeBinPath [ pkgs.coreutils pkgs.git ]}"; + WorkingDirectory = "%h/git/buchhaltung"; + ExecStart = "${lib.getExe pkgs.nix} develop -c unsupervised-update"; }; }; timers.fetch-banking = { diff --git a/home-manager/roles/hotkeys.nix b/home-manager/roles/hotkeys.nix index 5c1580f9..fc0391e5 100644 --- a/home-manager/roles/hotkeys.nix +++ b/home-manager/roles/hotkeys.nix @@ -82,7 +82,8 @@ in [ Config = edit_dir "~/git/config"; Files = fork "nautilus"; Accounting = { - Update = "nix run ./git/buchhaltung#update"; + Update = + "sh -c 'cd ~/git/buchhaltung; nix develop -c interactive-update'"; Display = "hledger -f ~/git/buchhaltung/buchhaltung.journal ui -- --watch --theme=terminal -X€ -t -E"; };