52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
description = "Nixos config flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
nvf.url = "github:notashelf/nvf";
|
|
|
|
alejandra.url = "github:kamadorueda/alejandra/3.1.0";
|
|
alejandra.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
nvf,
|
|
alejandra,
|
|
...
|
|
} @ inputs: {
|
|
# use "nixos", or your hostname as the name of the configuration
|
|
# it's a better practice than "default" shown in the video
|
|
|
|
packages."x86_64-linux".default =
|
|
(nvf.lib.neovimConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux";
|
|
modules = [./nvf-configuration.nix];
|
|
})
|
|
.neovim;
|
|
|
|
nixosConfigurations = {
|
|
nixos = nixpkgs.lib.nixosSystem {
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
{
|
|
environment.systemPackages = [alejandra.defaultPackage.x86_64-linux];
|
|
}
|
|
|
|
./hosts/hummingbird/configuration.nix
|
|
inputs.home-manager.nixosModules.default
|
|
nvf.nixosModules.default
|
|
./nvf-configuration.nix
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|