Adapt config to buchhaltungs devshell
This commit is contained in:
parent
f0cc7fd96a
commit
468f5a3feb
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue