45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
description = "A very basic flake";
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
nvf = {
|
|
url = "github:notashelf/nvf/v0.8";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
niri-flake = {
|
|
url = "github:sodiboo/niri-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
outputs = inputs @ {
|
|
self,
|
|
nixpkgs,
|
|
niri-flake,
|
|
home-manager,
|
|
...
|
|
}: {
|
|
nixosConfigurations.benag = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs;};
|
|
modules = [
|
|
./configuration/main/configuration.nix
|
|
home-manager.nixosModules.default
|
|
niri-flake.nixosModules.niri
|
|
{
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = true;
|
|
users.benag = ./home/home.nix;
|
|
sharedModules = [
|
|
niri-flake.homeModules.niri
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|