diff --git a/flake.lock b/flake.lock index 7120cfd421637d8ab69be78c9bbed652aff7c57d..6695b0d2551665a588d9706d8ecdf9b93eb6a1ca 100644 --- a/flake.lock +++ b/flake.lock @@ -52,17 +52,17 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1751685974, - "narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=", - "ref": "refs/heads/main", - "rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1", - "revCount": 92, - "type": "git", - "url": "https://git.lix.systems/lix-project/flake-compat.git" + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "type": "github" }, "original": { - "type": "git", - "url": "https://git.lix.systems/lix-project/flake-compat.git" + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" } }, "flake-compat_2": { @@ -81,22 +81,6 @@ "type": "github" } }, - "flake-compat_3": { - "flake": false, - "locked": { - "lastModified": 1696426674, - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -156,14 +140,17 @@ }, "flake-utils_3": { "inputs": { - "systems": "systems_4" + "systems": [ + "nvf", + "systems" + ] }, "locked": { - "lastModified": 1705309234, - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { @@ -173,6 +160,24 @@ } }, "flake-utils_4": { + "inputs": { + "systems": "systems_4" + }, + "locked": { + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_5": { "inputs": { "systems": "systems_5" }, @@ -190,7 +195,7 @@ "type": "github" } }, - "flake-utils_5": { + "flake-utils_6": { "inputs": { "systems": "systems_6" }, @@ -419,8 +424,8 @@ }, "nvf": { "inputs": { - "flake-compat": "flake-compat", "flake-parts": "flake-parts", + "flake-utils": "flake-utils_3", "mnw": "mnw", "nixpkgs": [ "nixpkgs" @@ -428,15 +433,16 @@ "systems": "systems_3" }, "locked": { - "lastModified": 1753878721, - "narHash": "sha256-Y+Kr6FTHggnZ31nhaiOhIboIi+dhnLmQ9p0xf0wwnDc=", + "lastModified": 1754043154, + "narHash": "sha256-Q47BVxwocPZ1GEDs6gKGH00eso74i0gTEPNuF8Kj0T8=", "owner": "notashelf", "repo": "nvf", - "rev": "e35a74c44a35b28fd09f136dd3c0dbe9f300258f", + "rev": "69659e078b6531698255deda280c9407b34e29ea", "type": "github" }, "original": { "owner": "notashelf", + "ref": "v0.8", "repo": "nvf", "type": "github" } @@ -685,8 +691,8 @@ }, "zig": { "inputs": { - "flake-compat": "flake-compat_2", - "flake-utils": "flake-utils_3", + "flake-compat": "flake-compat", + "flake-utils": "flake-utils_4", "nixpkgs": "nixpkgs_3" }, "locked": { @@ -705,8 +711,8 @@ }, "zig-overlay": { "inputs": { - "flake-compat": "flake-compat_3", - "flake-utils": "flake-utils_5", + "flake-compat": "flake-compat_2", + "flake-utils": "flake-utils_6", "nixpkgs": [ "zls", "nixpkgs" @@ -728,7 +734,7 @@ }, "zls": { "inputs": { - "flake-utils": "flake-utils_4", + "flake-utils": "flake-utils_5", "gitignore": "gitignore_2", "langref": "langref", "nixpkgs": "nixpkgs_4", diff --git a/flake.nix b/flake.nix index 52cda39d58325cc99291f71b7bfb0bc8f3783432..6c4b436c9ba2846640cb6e4d2c8c7bc07801fb8c 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ apple-fonts.url = "github:Lyndeno/apple-fonts.nix"; apple-fonts.inputs.nixpkgs.follows = "nixpkgs"; - nvf.url = "github:notashelf/nvf"; + nvf.url = "github:notashelf/nvf/v0.8"; nvf.inputs.nixpkgs.follows = "nixpkgs"; darwin.url = "github:lnl7/nix-darwin/master"; diff --git a/modules/neovim/default.nix b/modules/neovim/default.nix index 4a75d3d544b3e34818a56d26bfe82e6decc9ba2e..dd3a6431e2319af0e832237d68c1242ad8f2771e 100644 --- a/modules/neovim/default.nix +++ b/modules/neovim/default.nix @@ -69,6 +69,7 @@ signatureHelp = null; toggleFormatOnSave = null; }; + servers.nixd.init_options.autoArchive = true; }; treesitter = { enable = true; @@ -105,7 +106,6 @@ nix = { enable = true; format.type = "nixfmt"; # looks so much nicer - lsp.options.autoArchive = true; }; }; formatter.conform-nvim = { diff --git a/users/natalie/vim/languages.nix b/users/natalie/vim/languages.nix index 06d08c041ca6eaedaf56de39163cbc3d4a7360f0..05346a84beb5a215a2523801bc2571025f4b0f47 100644 --- a/users/natalie/vim/languages.nix +++ b/users/natalie/vim/languages.nix @@ -9,44 +9,7 @@ vim = { extraPackages = with pkgs; [ python312Packages.pylatexenc - nixd ]; - lsp = { - servers = { - nil = { - settings.nil.nix.flake = { - - autoArchive = true; - autoEvalInputs = true; - - }; - }; - nixd = { - settings.nixd = { - nixpkgs.expr = ''import "${flake.inputs.nixpkgs}" { }''; - - options = { - home-manager = { - expr = ''(let pkgs = import "${flake.inputs.nixpkgs}" { }; lib = import "${flake.inputs.home-manager}/modules/lib/stdlib-extended.nix" pkgs.lib; in (lib.evalModules { modules = (import "${flake.inputs.home-manager}/modules/modules.nix") { inherit lib pkgs;check = false;}; })).options''; - # (builtins.getFlake "${flakePath}").${darwin}Configurations.${hostname}.options.home-manager.users.type.getSubOptions [ ]''; - }; - } - // pkgs.lib.optionalAttrs host.darwin { - nix-darwin = { - expr = ''(let pkgs = import "${flake.inputs.nixpkgs}" { }; in (pkgs.lib.evalModules { modules = (import "${flake.inputs.darwin}/modules/module-list.nix"); check = false;})).options''; - # (builtins.getFlake "${flakePath}").darwinConfigurations.${hostname}.options''; - }; - } - // pkgs.lib.optionalAttrs host.linux { - nixos = { - expr = ''(let pkgs = import "${flake.inputs.nixpkgs}" { }; in (pkgs.lib.evalModules { modules = (import "${flake.inputs.nixpkgs}/nixos/modules/module-list.nix"); check = false;})).options''; - # (builtins.getFlake "${flakePath}").nixosConfigurations.${hostname}.options''; - }; - }; - }; - }; - }; - }; languages = { python = { format.type = "ruff"; @@ -57,7 +20,12 @@ enable = true; }; }; - nix.format.enable = true; + nix = { + lsp.servers = [ + "nil" + "nixd" + ]; + }; }; formatter.conform-nvim = {