diff --git a/home/config/nvim/default.nix b/home/config/nvim/default.nix index fd1a22f..2426024 100644 --- a/home/config/nvim/default.nix +++ b/home/config/nvim/default.nix @@ -3,7 +3,7 @@ let cfg = config.profile.neovim; inherit (lib) mkIf; repository = "git@github.com:tigorlazuardi/nvim.git"; - nvimCloneDir = "${config.home.homeDirectory}/nvim"; + nvimCloneDir = "${config.home.homeDirectory}/.config/nvim"; in { config = mkIf cfg.enable { @@ -23,13 +23,12 @@ in host = "github.com"; sleep = "${pkgs.coreutils}/bin/sleep"; script = pkgs.writeScriptBin "clone-nvim.sh" '' - #${bash} + #!${bash} if [ -d "${nvimCloneDir}" ]; then exit 0; fi - until ${ping} -c 1 ${host}; do ${sleep} 1; done @@ -42,7 +41,7 @@ in in { Type = "simple"; - ExecStart = path; + ExecStart = "${bash} ${path}"; Restart = "on-failure"; RemainAfterExit = "yes"; }; @@ -51,11 +50,6 @@ in }; }; - xdg.configFile.nvim = { - source = config.lib.file.mkOutOfStoreSymlink nvimCloneDir; - recursive = true; - }; - sops.secrets."copilot" = { path = "${config.home.homeDirectory}/.config/github-copilot/hosts.json"; };