Commit graph

1068 commits

Author SHA1 Message Date
Inex Code e648a3b8ef feat: Provide display names in DNS records 2023-12-28 22:13:17 +03:00
Houkime 77c267b9c8 beauty(backup): remove stray comments and imports, format 2023-12-28 22:13:17 +03:00
Houkime a6dda2d71a test(backups): test the trimming task 2023-12-28 22:13:17 +03:00
Houkime d549e29304 refactor(backups): only async snapshot trimming 2023-12-28 22:13:17 +03:00
Houkime e0b04217cd refactor(backups): async quota setting 2023-12-28 22:13:17 +03:00
Houkime 35a7497855 refactor(backups): also batch the forget_all_snapshots command 2023-12-28 22:13:17 +03:00
Houkime 409d4fc2bb feature(backups): batched removals of snapshots 2023-12-28 22:13:17 +03:00
Houkime 564fedf806 test(backups): use backup fixture (weird, i surely used it before) 2023-12-28 22:13:17 +03:00
Inex Code f8c9b7326f chore: mark version as flakes 2023-12-28 21:31:07 +03:00
Inex Code 87c58a5c9b fix: service location on new userdata 2023-12-28 21:26:32 +03:00
Alexander Tomokhov 5fe4c405ce nixos: split script into ExecStartPre && ExecStart 2023-12-28 12:27:07 +04:00
Alexander Tomokhov 679137386d nixos: set to false: restartIfChanged and unitConfig.X-StopOnRemoval 2023-12-28 05:31:58 +04:00
Alexander Tomokhov e8cd9d4b72 nixos: locking path:./sp-modules without flake.lock; cd /etc/nixos 2023-12-28 04:36:25 +04:00
Alexander Tomokhov 5bf42a8bc1 nixos: /etc/nixos#sp-nixos => /etc/nixos#default 2023-12-27 14:00:33 +04:00
Alexander Tomokhov 7883063dca nixos: config.system.build.nixos-rebuild instead of pkgs.nixos-rebuild 2023-12-27 13:36:36 +04:00
Alexander Tomokhov 6735784bb7 nixos: nix flake lock /etc/nixos --update-input sp-modules 2023-12-27 13:21:46 +04:00
Alexander Tomokhov 400be88738 nixos: service Type is simple
Because API is not designed to wait for long-running start command.
2023-12-22 23:50:18 +04:00
Inex Code 1800c8ecd7 debug: add prints to rebuild_system 2023-12-22 14:46:52 +03:00
Alexander Tomokhov 97984d2644 nixos: systemd service Type = "oneshot"
Otherwise, "After" directive is meaningless for us.
2023-12-20 18:04:21 +04:00
Alexander Tomokhov 82b0915231 nixos: avoid simultaneous runs of nixos-rebuild services
By declaring ordering dependencies between nixos-rebuild services.
2023-12-18 23:48:17 +04:00
Alexander Tomokhov 8c9bf95c6d nixos: sp-nixos-upgrade: update sp-modules/ own flake.lock 2023-12-18 22:24:57 +04:00
Alexander Tomokhov ac340cbaf2 upgrade nixpkgs to 23.11 2023-12-18 21:43:12 +04:00
Alexander Tomokhov 789a1c579c get rid of reading /var/domain 2023-12-18 07:38:13 +04:00
Alexander Tomokhov 08e04ee601 nixos: remove enableSwagger and b2Bucket options 2023-12-16 09:36:31 +04:00
Alexander Tomokhov 2bdb73d348 sp-nixos-rebuild: relock sp-modules each time 2023-12-12 15:42:03 +04:00
Alexander Tomokhov 0701984053 rename jitsi to jitsi-meet 2023-12-12 13:30:28 +04:00
Inex Code 91ff6eb989 refactor: move more services to sp-modules 2023-12-04 18:22:24 +03:00
Alexander Tomokhov 75f4e8d40e module: fix sp-nixos-rebuild systemd script 2023-11-23 21:31:50 +04:00
Inex Code 8791462f87 fix: Migration from secrets to token 2023-11-23 16:15:53 +03:00
Alexander Tomokhov 8ccec53740 module: more realistic commands in systemd services 2023-11-23 11:36:02 +04:00
Alexander Tomokhov 9c18ab285c module: set proper PYTHONPATH for huey with selfprivacy_api 2023-11-23 02:47:02 +04:00
Alexander Tomokhov d020820d26 package: buildPythonApplication => buildPythonPackage 2023-11-23 02:42:38 +04:00
Alexander Tomokhov 2bbc2be6b5 module: delete NIX_PATH and PYTHONPATH usage 2023-11-22 22:51:55 +04:00
Inex Code aa4e5a9251 fix: Remove unused migration entirely 2023-11-22 14:45:36 +03:00
Alexander Tomokhov fa766b7027 use git revision as Nix derivation version 2023-11-22 09:45:53 +04:00
Alexander Tomokhov b3a6e6393c devShell: add python environment explicitly (for VS Code) 2023-11-22 09:45:07 +04:00
Inex Code 22f9d2e9df refactor: Changes to reflect the new NixOS config structure 2023-11-21 23:14:42 +03:00
Alexander Tomokhov d3873119b0 fix nixos-rebuild commands for systemd services 2023-11-21 07:10:41 +04:00
Alexander Tomokhov e1847e1ce8 fix location of userdata.json file 2023-11-21 03:43:48 +04:00
Alexander Tomokhov e28aa8d60d minimal updates to systemd services 2023-11-18 06:37:14 +04:00
Alexander Tomokhov e6e9d0677e add selfprivacy-api NixOS module
Just a copy from selfprivacy-nixos-config.
2023-11-16 06:27:24 +04:00
Alexander Tomokhov 6f7613dedb Merge remote-tracking branch 'origin/master' into flake 2023-11-16 04:39:33 +04:00
Inex Code 113bcf4c29 Merge pull request 'fix(backups): do not infinitely retry automatic backup if it errors out' (#69) from autobackup-errors into master
Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/69
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2023-11-15 13:20:43 +02:00
Inex Code c3cec36ad4 style: formatting 2023-11-13 19:36:12 +03:00
Houkime e414f3b8fd fix(auth): fix timezone issues with recovery tokens 2023-11-13 09:15:12 -07:00
Houkime 1bbb804919 test(auth): token tests clearer about timezone assumptions 2023-11-10 17:40:52 +00:00
Houkime dd6f37a17d feature(auth): tz_aware recovery 2023-11-10 17:10:01 +00:00
Houkime 8badb9aaaf refactor(auth): tz_aware expiration comparison 2023-11-10 13:31:12 +00:00
Houkime 8453f62c74 refactor(time): more time functions 2023-11-10 13:05:38 +00:00
Houkime e78bcca9f2 test(auth): forced utc in recovery tests 2023-11-10 12:49:30 +00:00