Commit Graph

6 Commits

Author SHA1 Message Date
wrvsrx
95fc26d18a nixos/taskchampion-sync-server: use DynamicUser 2026-03-02 23:13:14 +08:00
wrvsrx
908ceb2faa nixos/taskchampion-sync-server: create user, group, dataDir only when users use default value
When users customize the taskchampion-sync-server data directory path,
they should handle permissions themselves. When using the default path,
systemd's StateDirectory can manage the permissions automatically.

This change:

- Only creates the default user/group when users haven't specified custom ones
- Removes manual tmpfiles.d configuration for directory creation
- Uses systemd's StateDirectory for automatic permission handling when using default dataDir
2026-02-08 04:50:59 +08:00
NAHO
a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
municorn
badd9d1a70 nixos/taskchampion-sync-server: add host option, fix ExecStart
fixes the command line arguments for taskchampion-sync-server, also adding a new `host` option. fixes the corresponding test as well.
2025-04-05 22:09:44 -06:00
wrvsrx
196c170197 nixos/taskchampion-sync-server: support specifiying --allow-client-id
taskchampion-sync-server supports specifying --allow-client-id in v0.5.0.
2025-02-05 12:28:49 +08:00
Doron Behar
ecf4caea3f nixos/taskchampion-sync-server: init
Co-authored-by: Mohamed Laradji <mlaradji@proton.me>
2024-08-14 08:06:11 +03:00