1
0
Fork 0

Adapt config to buchhaltungs devshell

This commit is contained in:
Malte 2023-06-02 01:46:52 +02:00
parent f0cc7fd96a
commit 468f5a3feb
No known key found for this signature in database
2 changed files with 5 additions and 8 deletions

View file

@ -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 = {

View file

@ -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";
};