feat(flake): add nvf package and import to systemPackages

This commit is contained in:
rafiq 2025-02-27 04:08:51 +08:00
parent fdeb289590
commit 7a7f6b1e25
2 changed files with 199 additions and 1 deletions

View file

@ -5,8 +5,10 @@
self,
nixpkgs,
home-manager,
nvf,
...
} @ inputs: {
# System Configurations
nixosConfigurations = {
nemesis = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
@ -26,9 +28,18 @@
./users/rafiq
];
}
# Include NVF in the system
({ pkgs, ... }: { environment.systemPackages = [ self.packages.${pkgs.stdenv.system}.nvf ]; })
];
};
};
# NVF Configurations
packages.x86_64-linux.nvf = (inputs.nvf.lib.neovimConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ( {pkgs, ...}: {} ) ];
}).neovim;
};
inputs = {
@ -36,5 +47,8 @@
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nvf.url = "github:notashelf/nvf";
nvf.inputs.nixpkgs.follows = "nixpkgs";
};
}