aboutsummaryrefslogtreecommitdiffstats
path: root/system/services/nix-sync (unfollow)
Commit message (Collapse)Author
2024-08-02refactor(nixos/{nginx, nix-sync}): Migrate from `system/services`Benedikt Peetz
Nix-sync was sort-of mixed into the nginx configuration, thus separating it completely seemed reasonable.
2024-06-15fix(nix-sync): Change last occurrences of `repo.path` to `repoPath`Benedikt Peetz
Using `repo.path` (with the slash on the end) results in operations on the directory, which is the symlink target. Using `repoPath` (without the slash) instead results in the intended operations on the symlink itself.
2024-06-05fix(nix-sync): Don't try to exit in a subshellBenedikt Peetz
The `(cmd1 && cmd2)` pattern works, but fails with commands like `exit` as the parentheses start a new subshell, which the `exit` command will then close instead of exiting the main shell. The curly brackets have the intended effect here, as they simply group the commands together.
2024-06-05fix(nix-sync): Ensure that the `target` for `ln` never ends with a `/`Benedikt Peetz
Otherwise, `ln` tries to create the symlink _in_ the target directory.
2024-06-05fix(nix-sync): Add code-path to create a repo's path, if absentBenedikt Peetz
2024-06-01fix(nix-sync): Ensure that the service can write to all needed pathsBenedikt Peetz
Previously, the generated service _could_ write to the directory, but wanted to create the directory, if it was absent. Creating this directory, requires to be able to write in the parent directory. This is fixed, by ensuring that the parent directories are included.
2024-06-01fix(nix-sync): Explicitly set the `network-online.target` dependencyBenedikt Peetz
2024-05-25feat(system/services/nginx): Add the GPG WKDBenedikt Peetz
2023-10-14Style(treewide): Merge attrs togetherSoispha
2023-08-02Fix(system/services/nix-sync): Remove timeout on buildSoispha
The unit had the potential to fail, if the build took longer than the default timeout. This is obviously not ideal, so the timeout was removed, as all nix builds should be safe enough not to devour resources.
2023-08-02Fix(system/services/nix-sync): Rebase on pulls, to allow for force pushesSoispha
As the nix-sync service should _never_ commit new stuff, this rebase should always be a fast-forward, i.e. it works without manual intervention. Without the rebase as argument, this services would break, when the history gets rewritten, for example on a amended commit.
2023-08-02Fix(system/services/nix-sync): Make the timer relative to the unit startSoispha
The timer before hand started `repo.interval` after it self was started, i.e., it was a oneshot timer. This change now fixes this by make the point the timer activates relative to the time elapsed, since the associated unit was last started.
2023-07-19Style(treewide): Format after removing vim linesSoispha
2023-07-19Feat(.editorconfig): Add the configuration for all filesSoispha
This sets some formatting option based on the file. In comparison to the vim lines, this should be supported by more editors.
2023-07-08Fix(system/services/nix-sync): Nix build needs access to /proc/statSoispha
2023-07-05Fix(system/services/nix-sync): Guard deletion of `repo.path`Soispha
2023-07-05Fix(system/services/nix-sync): Pull before rebuildingSoispha
2023-07-05Fix(system/services/nix-sync): Generate the needed repo pathsSoispha
2023-07-05Fix(system/services/nix-sync): Rebuild website on gcSoispha
2023-07-05Fix(system/services/nix-sync): Really remove last reference to git-syncSoispha
2023-07-05Fix(system/services/nix-sync): Small typos in ExecStartSoispha
2023-07-04Feat(system/services/nix-sync): Split unit into a timer and unitSoispha
2023-07-04Fix(system/services/nix-sync): Use cache directorySoispha
2023-07-04Docs(system/services/nix-sync): Change last remnant from git-syncSoispha
2023-07-04Fix(system/services/nix-sync): Use correct git urlsSoispha
2023-07-04Fix(system/services/nix-sync): Generate root independent of pathSoispha
2023-07-04Fix(system/services/nix-sync): Add the cachePath rwSoispha
2023-07-04Fix(system/services/nix-sync): Add '/etc/nginx/websites' to kept dirsSoispha
2023-07-04Fix(system/services/nix-sync): Remove slash from cachePathSoispha
2023-07-04Fix(system/services/nix-sync): Add some required paths to unitSoispha
2023-07-04Refactor(system/services/nix-sync): Consolidate into repoCachePathSoispha
2023-07-04Fix(system/services/nix-sync): Generate user and group if set to defaultSoispha
2023-07-04Fix(system/services/nix-sync): Rename units to nix-sync-<domain>Soispha
2023-07-04Fix(system/services/nix-sync): Use correct shell escape for pathsSoispha
2023-07-03Fix(system/services/nix-sync): Use correct writeScript functionSoispha
2023-07-03Fix(system/services/nix-sync): Fully rename to nix-syncSoispha
2023-07-03Feat(system/services/nix-sync): Remodel git-sync to make it usefulSoispha