diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..b6314bf --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,2 @@ +[data] + is_wsl = {{ (.chezmoi.kernel.osrelease | regexMatch "-microsoft-standard$") }} diff --git a/run_once_4_configure_gnome.sh.tmpl b/run_once_4_configure_gnome.sh.tmpl index 8ba15ff..acaec3f 100644 --- a/run_once_4_configure_gnome.sh.tmpl +++ b/run_once_4_configure_gnome.sh.tmpl @@ -1,4 +1,4 @@ -{{- if and (eq .chezmoi.os "linux") -}} +{{- if and (eq .chezmoi.os "linux") (not .is_wsl) -}} #!/bin/sh dconf load /org/gnome/ <