diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/by-name/at/atuin/module.nix | 10 | ||||
-rw-r--r-- | modules/by-name/ba/backup/module.nix | 18 |
2 files changed, 24 insertions, 4 deletions
diff --git a/modules/by-name/at/atuin/module.nix b/modules/by-name/at/atuin/module.nix index 1aec2e74..9e3f46a7 100644 --- a/modules/by-name/at/atuin/module.nix +++ b/modules/by-name/at/atuin/module.nix @@ -39,10 +39,12 @@ in { settings = { key_path = "${config.age.secrets.atuin_encryption_key.path}"; - # TODO: Setup a self-hosted sync server. <2024-10-18> - session_path = ""; - auto_sync = false; - sync_address = ""; + sync = { + # The v2 sync API + records = true; + }; + auto_sync = true; + sync_address = "https://atuin-sync.vhack.eu"; # Use the rather reasonable syntax of `skim` to search. search_mode = "skim"; diff --git a/modules/by-name/ba/backup/module.nix b/modules/by-name/ba/backup/module.nix index eb7fedf0..d0805092 100644 --- a/modules/by-name/ba/backup/module.nix +++ b/modules/by-name/ba/backup/module.nix @@ -184,6 +184,24 @@ in { Persistent = true; }; }; + + # This is only for listing, pruning and such stuff. + storagebox-admin = lib.mkIf cfg.storagebox.enable { + inhibitsSleep = false; + initialize = false; + + passwordFile = config.age.secrets.resticStorageboxRepositoryPassword.path; + extraOptions = [ + "rclone.program='ssh -p 23 ${cfg.storagebox.user}@${cfg.storagebox.user}.your-storagebox.de command_forced_on_remote'" + ]; + + # This setting is normally passed to rclone, but we force + # the command on the remote. + # As such, the value does not matter and must only be parseable by restic. + repository = "rclone: "; + + timerConfig = null; + }; }; }; } |