Adapt config to buchhaltungs devshell
This commit is contained in:
parent
f0cc7fd96a
commit
468f5a3feb
|
@ -4,13 +4,9 @@
|
||||||
Unit.Description = "Fetch banking";
|
Unit.Description = "Fetch banking";
|
||||||
Service = {
|
Service = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
Environment = "PATH=${
|
Environment = "PATH=${lib.makeBinPath [ pkgs.coreutils pkgs.git ]}";
|
||||||
lib.makeBinPath [ pkgs.coreutils pkgs.git pkgs.pass pkgs.gnupg ]
|
WorkingDirectory = "%h/git/buchhaltung";
|
||||||
}";
|
ExecStart = "${lib.getExe pkgs.nix} develop -c unsupervised-update";
|
||||||
ExecStart = toString (pkgs.writeShellScript "fetch-banking" ''
|
|
||||||
cd ~/git/buchhaltung
|
|
||||||
exec ${pkgs.nix}/bin/nix develop -c ${pkgs.nix}/bin/nix run ".#autoupdate"
|
|
||||||
'');
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
timers.fetch-banking = {
|
timers.fetch-banking = {
|
||||||
|
|
|
@ -82,7 +82,8 @@ in [
|
||||||
Config = edit_dir "~/git/config";
|
Config = edit_dir "~/git/config";
|
||||||
Files = fork "nautilus";
|
Files = fork "nautilus";
|
||||||
Accounting = {
|
Accounting = {
|
||||||
Update = "nix run ./git/buchhaltung#update";
|
Update =
|
||||||
|
"sh -c 'cd ~/git/buchhaltung; nix develop -c interactive-update'";
|
||||||
Display =
|
Display =
|
||||||
"hledger -f ~/git/buchhaltung/buchhaltung.journal ui -- --watch --theme=terminal -X€ -t -E";
|
"hledger -f ~/git/buchhaltung/buchhaltung.journal ui -- --watch --theme=terminal -X€ -t -E";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue