From fab2ef5b78b81a40c010c24ae72480a89a699e5a Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 7 Feb 2024 13:35:46 +0100 Subject: [PATCH] dont configure gnome when on wsl --- .chezmoi.toml.tmpl | 2 ++ run_once_4_configure_gnome.sh.tmpl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .chezmoi.toml.tmpl 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/ <