My configuration. Probably nothing to look for here.
Go to file
Motiejus Jakštys 9427ac5f5c fwminex: remove immich for now
```
Nov 20 16:17:38 fwminex systemd[1]: Started Immich backend server (Self-hosted photo and video backup solution).
Nov 20 16:17:38 fwminex immich[3803141]: + mkdir /data/M-Camera
Nov 20 16:17:38 fwminex immich[3803141]: + bindfs -u immich -g immich /var/run/immich/bind-paths/M-Camera /data/M-Camera
Nov 20 16:17:38 fwminex immich[3803141]: + mkdir /data/Pictures
Nov 20 16:17:38 fwminex immich[3803141]: + bindfs -u immich -g immich /var/run/immich/bind-paths/Pictures /data/Pictures
Nov 20 16:17:38 fwminex immich[3803141]: + exec setpriv --ruid immich --inh-caps -all /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/bin/server
Nov 20 16:17:39 fwminex immich[3803141]: Starting api worker
Nov 20 16:17:39 fwminex immich[3803141]: Starting microservices worker
Nov 20 16:17:40 fwminex immich[3803141]: [Nest] 3803141  - 11/20/2024, 4:17:40 PM     LOG [Microservices:EventRepository] Initialized websocket server
Nov 20 16:17:40 fwminex immich[3803141]: [Nest] 3803141  - 11/20/2024, 4:17:40 PM    WARN [Microservices:DatabaseService] Could not run vector reindexing checks. If the extension was updated, please restart the Postgres instance.
Nov 20 16:17:40 fwminex immich[3803141]: QueryFailedError: pgvecto.rs: The extension is upgraded so all index files are outdated.
Nov 20 16:17:40 fwminex immich[3803141]: ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html`
Nov 20 16:17:40 fwminex immich[3803141]:     at PostgresQueryRunner.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)
Nov 20 16:17:40 fwminex immich[3803141]:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Nov 20 16:17:40 fwminex immich[3803141]:     at async DataSource.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/data-source/DataSource.js:350:20)
Nov 20 16:17:40 fwminex immich[3803141]:     at async DatabaseRepository.shouldReindex (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:136:25)
Nov 20 16:17:40 fwminex immich[3803141]:     at async DatabaseService.checkReindexing (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:144:17)
Nov 20 16:17:40 fwminex immich[3803141]:     at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:93:13
Nov 20 16:17:40 fwminex immich[3803141]:     at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:197:23 {
Nov 20 16:17:40 fwminex immich[3803141]:   query: 'SELECT idx_status FROM pg_vector_index_stat WHERE indexname = $1',
Nov 20 16:17:40 fwminex immich[3803141]:   parameters: [ 'clip_index' ],
Nov 20 16:17:40 fwminex immich[3803141]:   driverError: error: pgvecto.rs: The extension is upgraded so all index files are outdated.
Nov 20 16:17:40 fwminex immich[3803141]:   ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html`
Nov 20 16:17:40 fwminex immich[3803141]:       at /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/pg/lib/client.js:535:17
Nov 20 16:17:40 fwminex immich[3803141]:       at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Nov 20 16:17:40 fwminex immich[3803141]:       at async PostgresQueryRunner.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)
Nov 20 16:17:40 fwminex immich[3803141]:       at async DataSource.query (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/node_modules/typeorm/data-source/DataSource.js:350:20)
Nov 20 16:17:40 fwminex immich[3803141]:       at async DatabaseRepository.shouldReindex (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:136:25)
Nov 20 16:17:40 fwminex immich[3803141]:       at async DatabaseService.checkReindexing (/nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:144:17)
Nov 20 16:17:40 fwminex immich[3803141]:       at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/services/database.service.js:93:13
Nov 20 16:17:40 fwminex immich[3803141]:       at async /nix/store/vf72vvry2bjlrq8mdhgvx6f93v9i2gir-immich-1.120.1/dist/repositories/database.repository.js:197:23 {
Nov 20 16:17:40 fwminex immich[3803141]:     length: 234,
Nov 20 16:17:40 fwminex immich[3803141]:     severity: 'ERROR',
Nov 20 16:17:40 fwminex immich[3803141]:     code: 'XX000',
Nov 20 16:17:40 fwminex immich[3803141]:     detail: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     hint: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     position: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     internalPosition: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     internalQuery: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     where: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     schema: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     table: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     column: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     dataType: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     constraint: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:     file: 'error.rs',
Nov 20 16:17:40 fwminex immich[3803141]:     line: '125',
Nov 20 16:17:40 fwminex immich[3803141]:     routine: 'vectors::error::check_client'
Nov 20 16:17:40 fwminex immich[3803141]:   },
Nov 20 16:17:40 fwminex immich[3803141]:   length: 234,
Nov 20 16:17:40 fwminex immich[3803141]:   severity: 'ERROR',
Nov 20 16:17:40 fwminex immich[3803141]:   code: 'XX000',
Nov 20 16:17:40 fwminex immich[3803141]:   detail: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   hint: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   position: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   internalPosition: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   internalQuery: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   where: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   schema: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   table: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   column: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   dataType: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   constraint: undefined,
Nov 20 16:17:40 fwminex immich[3803141]:   file: 'error.rs',
Nov 20 16:17:40 fwminex immich[3803141]:   line: '125',
Nov 20 16:17:40 fwminex immich[3803141]:   routine: 'vectors::error::check_client'
Nov 20 16:17:40 fwminex immich[3803141]: }
Nov 20 16:17:40 fwminex immich[3803141]: microservices worker error: QueryFailedError: pgvecto.rs: The extension is upgraded so all index files are outdated.
Nov 20 16:17:40 fwminex immich[3803141]: ADVICE: Delete all index files. Please read `https://docs.pgvecto.rs/admin/upgrading.html`
Nov 20 16:17:40 fwminex immich[3803141]: microservices worker exited with code 1
Nov 20 16:17:40 fwminex immich[3803141]: Killing api process
```
2024-11-20 16:21:34 +02:00
hosts fwminex: remove immich for now 2024-11-20 16:21:34 +02:00
modules disable calibre 2024-11-19 22:32:19 +02:00
pkgs rm imapsync 2024-11-07 16:48:25 +02:00
secrets rm iodine 2024-10-08 13:43:58 -07:00
shared colorscheme: let's try torte 2024-11-20 10:03:14 +02:00
.envrc direnv: bump to 3.0.4 2024-03-10 17:20:09 +02:00
.gitattributes Configure git repository for gpg file diff. 2023-01-03 13:41:30 +02:00
.gitignore enable some checks in pre-commit hooks 2023-10-02 00:00:30 +03:00
data.nix rm mxp10 2024-11-19 18:49:39 +02:00
flake.lock 24.11 2024-11-19 22:32:19 +02:00
flake.nix 24.11 2024-11-19 22:32:19 +02:00
LICENSE relicense 2024-01-15 18:18:45 +02:00
README.md borg: README 2024-08-27 09:00:57 +03:00
secrets.nix rm iodine 2024-10-08 13:43:58 -07:00

Config

Flakes:

$ deploy --interactive '#fwminex'

$ nix build .#deploy.nodes.fra1-b.profiles.system.path

Other:

$ nix build .#nixosConfigurations.vno3-rp3b.config.system.build.toplevel
$ nix eval .#nixosConfigurations.fwminex.config.services.nsd

Encoding host-only secrets

Encode a secret on host:

rage -e -r "$(cat /etc/ssh/ssh_host_ed25519_key.pub)" -o secret.age /path/to/plaintext

Decode a secret on host (to test things out):

rage -d -i /etc/ssh/ssh_host_ed25519_key secret.age

Borg

BORG_PASSCOMMAND="cat /run/agenix/borgbackup-fwminex" borg --remote-path=borg1 list zh2769@zh2769.rsync.net:fwminex.servers.jakst-home-motiejus-annex2