diff --git a/flake.nix b/flake.nix index 2911b22..cf48d39 100644 --- a/flake.nix +++ b/flake.nix @@ -6,14 +6,31 @@ nvf.url = "github:notashelf/nvf"; }; - outputs = {nixpkgs, ...} @ inputs: { - packages."x86_64-linux".nvf = - (inputs.nvf.lib.neovimConfiguration { - pkgs = nixpkgs.legacyPackages."x86_64-linux"; - modules = [ - ./nvf.nix - ]; - }) - .neovim; + outputs = { + self, + nixpkgs, + ... + } @ inputs: let + supportedSystems = ["aarch64-linux" "i686-linux" "x86_64-linux"]; + + # Function to generate a set based on supported systems: + forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems; + + # Attribute set of nixpkgs for each system: + nixpkgsFor = + forAllSystems (system: import inputs.nixpkgs {inherit system;}); + in { + packages = forAllSystems (system: let + pkgs = nixpkgsFor.${system}; + in { + nvf = + (inputs.nvf.lib.neovimConfiguration { + pkgs = nixpkgs.legacyPackages.${system}; + modules = [ + ./nvf.nix + ]; + }) + .neovim; + }); }; } diff --git a/nvf.nix b/nvf.nix index 5307451..d7fc568 100644 --- a/nvf.nix +++ b/nvf.nix @@ -14,9 +14,9 @@ lspsaga.enable = false; trouble.enable = true; lspSignature.enable = true; - #otter-nvim.enable = isMaximal; - #lsplines.enable = isMaximal; - #nvim-docs-view.enable = isMaximal; + #otter-nvim.enable = true; + #lsplines.enable = true; + #nvim-docs-view.enable = true; }; debugger = { @@ -208,7 +208,7 @@ }; presence = { - neocord.enable = false; + neocord.enable = true; }; }; }