Commit 3f878a92c8a1
Changed files (2)
home
common
desktop
systems
aomi
home/common/desktop/passage.nix
@@ -8,4 +8,30 @@
home.packages = with pkgs; [
passage
];
+
+ # Daily passage password store sync
+ systemd.user.services.passage-update = {
+ Unit = {
+ Description = "Update passage password store";
+ };
+ Service = {
+ Type = "oneshot";
+ ExecStart = "${pkgs.passage}/bin/passage git pull --rebase";
+ WorkingDirectory = config.home.sessionVariables.PASSAGE_DIR;
+ };
+ };
+
+ systemd.user.timers.passage-update = {
+ Unit = {
+ Description = "Daily passage password store update";
+ };
+ Timer = {
+ OnCalendar = "daily";
+ Persistent = true;
+ RandomizedDelaySec = "1h";
+ };
+ Install = {
+ WantedBy = [ "timers.target" ];
+ };
+ };
}
systems/aomi/home.nix
@@ -38,29 +38,4 @@
lazygit
];
- # Passage update service and timer
- systemd.user.services.passage-update = {
- Unit = {
- Description = "Update passage password store";
- };
- Service = {
- Type = "oneshot";
- ExecStart = "${pkgs.passage}/bin/passage git pull --rebase";
- WorkingDirectory = config.home.sessionVariables.PASSAGE_DIR;
- };
- };
-
- systemd.user.timers.passage-update = {
- Unit = {
- Description = "Daily passage password store update";
- };
- Timer = {
- OnCalendar = "daily";
- Persistent = true;
- RandomizedDelaySec = "1h";
- };
- Install = {
- WantedBy = [ "timers.target" ];
- };
- };
}