]> Skullheadx's Git Forge - nixos.git/commitdiff
add astronvim config
authorAndrew <admonty1@protonmail.com>
Sat, 8 Nov 2025 19:12:25 +0000 (14:12 -0500)
committerAndrew <admonty1@protonmail.com>
Sat, 8 Nov 2025 19:12:25 +0000 (14:12 -0500)
.gitmodules [new file with mode: 0644]
astronvim-config [new submodule]
home.nix
neovim.nix

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..3acb5e4
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "astronvim-config"]
+       path = astronvim-config
+       url = https://github.com/Skullheadx/astronvim-config.git
diff --git a/astronvim-config b/astronvim-config
new file mode 160000 (submodule)
index 0000000..3d60141
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 3d60141a648aabfd15504a09d408784d3abae96e
index c3762bc0a0d88fa3a72b59b16250e8c89d1c006d..c0abbde32575fa93956d00f05a96f36369f48481 100644 (file)
--- a/home.nix
+++ b/home.nix
@@ -5,6 +5,7 @@
   inputs,
   ...
 }: {
+
   imports = [
     ./sh.nix
     ./ghostty.nix
index a10b6507e5b40b409386ea9f1ec73722da97cd27..de61b98e2e1f2a2246cd8de13708932a5a2826ba 100644 (file)
@@ -5,12 +5,16 @@
   inputs,
   ...
 }: let
-  filePath = "${config.dotfiles.path}/astronvim-config/init.lua";
+dotfiles.mutable = true;
+dotfiles.path = "${config.home.homeDirectory}/.dotfiles";
+  filePath = "${config.dotfiles.path}/astronvim-config";
   configSrc =
-    if !config.dotfiles.mutable
-    then ./init.lua
-    else config.lib.file.mkOutOfStoreSymlink filePath;
+    config.lib.file.mkOutOfStoreSymlink filePath;
 in {
-  home.packages = [pkgs.neovim];
-  xdg.configFile."neovim/config.conf".source = configSrc;
+  xdg.configFile."nvim".source = ./astronvim-config;
+
+       programs.neovim = {
+               enable = true;
+               defaultEditor = true;
+       };
 }