diff --git a/core/tabs/applications-setup/docker-setup.sh b/core/tabs/applications-setup/docker-setup.sh index cf3eaa61..845f62d5 100755 --- a/core/tabs/applications-setup/docker-setup.sh +++ b/core/tabs/applications-setup/docker-setup.sh @@ -37,7 +37,7 @@ install_docker() { ;; nix-env) "$PACKAGER" -iA nixpkgs.docker - "$ESCALATION_TOOL" sed -i '/^virtualisation\.docker\.enable/!b; s/^virtualisation\.docker\.enable.*/virtualisation.docker.enable = true;/' "$NIXOS_CONFIG" || echo 'virtualisation.docker.enable = true;' | "$ESCALATION_TOOL" tee -a "$NIXOS_CONFIG" + "$ESCALATION_TOOL" sed -i -E '/^[[:space:]]*virtualisation\.docker\.enable/!b; s/^([[:space:]]*)virtualisation\.docker\.enable.*/\1virtualisation.docker.enable = true;/' "$NIXOS_CONFIG" || echo 'virtualisation.docker.enable = true;' | "$ESCALATION_TOOL" tee -a "$NIXOS_CONFIG" "$ESCALATION_TOOL" nixos-rebuild switch ;; *) diff --git a/core/tabs/applications-setup/setup-flatpak.sh b/core/tabs/applications-setup/setup-flatpak.sh index 917f2382..1ef4a279 100755 --- a/core/tabs/applications-setup/setup-flatpak.sh +++ b/core/tabs/applications-setup/setup-flatpak.sh @@ -27,7 +27,7 @@ setup_flatpak() { ;; nix-env) "$PACKAGER" -iA nixpkgs.flatpak - "$ESCALATION_TOOL" sed -i '/^services\.flatpak\.enable/!b; s/^services\.flatpak\.enable.*/services.flatpak.enable = true;/' "$NIXOS_CONFIG" || echo 'services.flatpak.enable = true;' | "$ESCALATION_TOOL" tee -a "$NIXOS_CONFIG" + "$ESCALATION_TOOL" sed -i -E '/^[[:space:]]*services\.flatpak\.enable/!b; s/^([[:space:]]*)services\.flatpak\.enable.*/\1services.flatpak.enable = true;/' "$NIXOS_CONFIG" || echo 'services.flatpak.enable = true;' | "$ESCALATION_TOOL" tee -a "$NIXOS_CONFIG" "$ESCALATION_TOOL" nixos-rebuild switch ;; *)