From 0738bef0b3145095b7157078a8b698e237e34e2a Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 17 Jun 2024 17:28:32 +0700 Subject: [PATCH] neovim: fix exec format --- home/config/nvim/default.nix | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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"; };