diff --git a/home-manager/install.nix b/home-manager/install.nix index f69508a85..45073b636 100644 --- a/home-manager/install.nix +++ b/home-manager/install.nix @@ -36,6 +36,12 @@ in runCommand "home-manager-install" { xdgVars="$xdgVars xdg.stateHome = \"$XDG_STATE_HOME\";$nl" fi + if [[ $OSTYPE == linux-* && ! -e /etc/NIXOS ]]; then + target=$'\n targets.genericLinux.enable = true;\n' + else + target="" + fi + mkdir -p "$(dirname "$confFile")" cat > $confFile <