diff --git a/flake.nix b/flake.nix index e591fc1..a071e2b 100644 --- a/flake.nix +++ b/flake.nix @@ -6,26 +6,21 @@ ## for explicitly installed packages and non nixvim config nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - flake-utils.url = "github:numtide/flake-utils"; - nixvim = { url = "github:nix-community/nixvim"; }; }; - outputs = { nixpkgs, flake-utils, ... } @ inputs: - flake-utils.lib.eachDefaultSystem (system: - let - pkgs = nixpkgs.legacyPackages.${system}; - in + outputs = { self, nixpkgs, flake-utils, ... } @ inputs: { nixosModules = rec { - nixvim-config = import ./default.nix { - inherit inputs; - inherit pkgs; - }; + nixvim-config = { pkgs, ... }: + import ./default.nix { + inherit inputs; + inherit pkgs; + }; default = nixvim-config; }; - }); + }; }