Commit graph

20 commits

Author SHA1 Message Date
XiaoYan Li
932a9b5bf1
chore(chezmoi): Fix log message (#393) 2025-02-28 14:35:28 +01:00
Gerald Pinder
be0201ce76 fix: Separate models required for separate schema files 2025-01-31 18:28:33 -05:00
Gerald Pinder
d343201724
chore: Update schemas to version all types (#383) 2025-01-30 14:00:08 -05:00
fiftydinar
189048b119
chore: Remove usage of yq in favor of jq (#369)
* chore: Remove usage of `yq` in favor of `jq`

* fix: Missed bracket in `default-flatpaks`

* fix: `get_json_array` complaining about unpopulated arrays

* fix(files): Forgot to input `-r` flag for some `jq` calls

* fix(gschema-overrides): Use `try` in `get_json_array`

* chore(default-flatpaks): Replace `yq` with `jq` in run-time setup binaries

* chore: Switch to simplified `jq` syntax without brackets

* chore(default-flatpaks): Switch `repo-info` file from `yml` to `json`

* fix(default-flatpaks): Some `yq` calls

* chore: Revert back to bracket syntax for more reliable `jq` parsing

* chore(files): Missed bracket syntax

* chore: Approve bot suggestion about quoting

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update modules/files/files.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(yafti): Populating custom flatpaks

It's populated in reverse order compared to the format in recipe, but it works

* fix(fonts): Variable substitution is needed

* fix: Typo

* fix(fonts): Forgot to assign FONTS variable

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-02 19:02:13 +00:00
yacoob
c065b145de
fix: properly handle custom branch in chezmoi module (#368)
For posterity: `INIT_BRANCH_FLAG` should be set if `DOTFILE_BRANCH` is not empty and is not equal to `"null"`.
2024-11-30 22:28:26 +01:00
fiftydinar
a166afed8a
fix(chezmoi): Properly use default branch
`yq` outputs "null" string when no results are found, so it's not an empty string.

Branch "null" is passed as custom branch, which very likely doesn't exist in user's chezmoi repo.

So to solve this issue, set "if string is empty or contains string "null", disable custom branch, otherwise enable"
2024-11-19 16:41:13 +01:00
yacoob
e328da9497
feat(chezmoi): Allow specifying branch for chezmoi init (#357)
* feat: allow specifying branch for `chezmoi init`

* fix: don't assume the default branch is `main`

* fix: get rid of `main` reference in the README
2024-11-08 20:24:00 +01:00
fiftydinar
8f9255cacd
chore: Make curl commands clearer & more standardized 2024-09-18 10:10:52 +02:00
Gerald Pinder
12135f7c9c fix: Set curl to silent and fail 2024-09-17 17:30:33 -04:00
xyny
e749fe71d3 chore: remove raw github URLs from module.ymls (unneeded after recent refactor) 2024-07-26 16:02:32 +03:00
Daniel Barenholz
4a433d6112
docs(chezmoi+gschema-overrides): Fix some typos (#298)
* docs(chezmoi): Fix typos

* docs(gschema-overrides): Fix typo
2024-07-26 12:52:12 +00:00
xyny
46b1070110
docs: improve examples, remove docs superseded by typespec docstrings (#279)
* chore(bling): uncomment example options

* refactor(brew): remove duplicate "configuration options" setting in README, improve TSP docs

* fix(chezmoi): make example an example and not a doc of the configuration options

* chore(rpm-ostree): remove fake example

examples should be runnable

* fix(rpm-ostree): add replacing packages to typespec schema

* fix(rpm-ostree): actually install the packages the repos are added for

* feat(rpm-ostree): showcase installing from URL and using optfix in example

* fix(rpm-ostree): add optfix to typespec

* fix(systemd): real-world example instead of configuration docs duplicate
2024-07-16 17:09:00 +00:00
Noah
0299d18c3e
docs: remove random ` (#277) 2024-07-13 08:19:59 +00:00
xyny
be6e4ba5bd
feat: add typespec schemas for modules (#233)
* feat: add typespec for bling and akmods for testing

* chore: temporarily change module source to dev branch

* feat: add missing module typespecs from blue-build/schema

* feat: add schemas for default-flatpaks module

* chore: annotate some parameters as optional

* fix: typo in default-flatpaks schema

* feat: add schema for files module

* feat: add script module schema

* feat: add signing module schema

* docs: add module.yml docs etc.

* fix(default-flatpaks): don't capitalize string in typespec

* feat: add schemas for gnome-extensions

* fix(files): properly declare string: string record type

* chore: add tsp for gschema-overrides

* chore: tsp for systemd module

* chore: add link to systemd tsp to module.yml

* chore: add tsp for yafti module

* feat: add docstrings for files module

* feat: add tsp for chezmoi module

* feat: docstrings for akmods tsp

* feat: docstrings for bling tsp

* feat: docstrings for default flatpaks tsp

* fix: link to files module docs page in files module tsp

* feat: docstrings for fonts module tsp

* feat: add docstrings for gnome extensions tsp

* feat: docstrings for gschema overrides tsp

* feat: docstrings for rpm ostree tsp

* feat: docstrings for script tsp

* feat: docstrings for signing module

* feat: docstrings for systemd tsp

* feat: docstrings for yafti module

* fix: typo in files tsp

* feat: typespec for brew module

* chore: update rpm ostree tsp for keys: prop

* fix: use typespec to declare default values

* fix: errors from previous commit

* docs: add typespec instructions

* docs: chore: add typespec docs link for docs syntax

* chore: switch to semicolon for ending property definitions

* docs: fix: typo inlude -> include

* feat: tsp for justfiles module

* chore: change links to reference main branch

---------

Co-authored-by: fiftydinar <65243233+fiftydinar@users.noreply.github.com>
2024-07-09 16:25:31 +00:00
xyny
012d68d894
docs(chezmoi): fix using underscores as delimiters in docs, when code uses dashes (#242)
* docs(chezmoi): fix using underscores as delimiters in docs, when code uses dashes

this apparently was just a documentation problem, not an actual issue

* fix: change enable-all-users to all-users

* docs: change remaining underscores in readme to dashes

* fix: remove install-chezmoi key

* fix: rename changed-file-policy to file-conflict-policy
2024-06-02 11:23:53 +00:00
exponentactivity
d1ff4ad5f5
fix: Debug output is enabled despite DEBUG=false
Fixes #221
2024-05-09 17:14:18 +02:00
exponentactivity
d575a32696
fix: chezmoi-update.service fails when dotfiles have changed
Fixes #219
2024-05-09 15:27:12 +02:00
Matt Norton
aba83efa49
Fix spelling error in README.md 2024-05-08 15:25:05 +01:00
xyny
d46ef9baec
fix(chezmoi): readme typo 2024-05-06 16:04:10 +00:00
exponentactivity
824fa565e5
feat: Add Chezmoi module (#215)
* build: Added cosign.pub

* Feat: Add chezmoi module

* Excaped characters making build fail

* Switch ` for '

* Fixed syntax issues

* Fixed bash syntax and systemctl parameters

* Update modules/chezmoi/module.yml to correct README url

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>

* Used -z instead of `! -n`

* Fixed default settings

* Made script more verbose to ease debugging

* Fixed wrong default values

* Changed output to be more meaningful

for the end user, instead of the developer.

* Added debugging function

* Rename `install` > `install_chezmoi`, imrpove docs

Gave `install` a clearer name.
Added information to docs and improved readability.

* Fixed conditional check for set variable

* Removed unneeded commands and updated output.

* Change to official public key

* Fixed invalid systemd targets

* Fix chezmoi dir being created but not populated

~/.local/share/chezmoi is created before this service runs, failing `ConditionPathExists=!%h/.local/share/chezmoi`.
`.git` only exists if a repository has been cloned there.

* Made variable naming conform to project style

* fix: Redo suggested commits

I accidently overwrote some commits.

* docs: Explain what lingering does

* docs: fix typo in shortdesc

(oops my fault)

---------

Co-authored-by: Gerald Pinder <gmpinder@gmail.com>
Co-authored-by: xyny <60004820+xynydev@users.noreply.github.com>
2024-05-06 15:48:39 +00:00