46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|
description = "My witchy little distro / NixOS config";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
...
|
|
}@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
|
|
mkSystemConfig = host: {
|
|
name = host;
|
|
value = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs outputs; };
|
|
modules = [ (import ./hosts/${host}).system ];
|
|
};
|
|
};
|
|
|
|
mkHomeConfig = host: user: {
|
|
name = "${host}@${user}";
|
|
value = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = { inherit inputs outputs; };
|
|
modules = [ (import ./hosts/${host}).home ];
|
|
};
|
|
};
|
|
in
|
|
{
|
|
overlays = import ./overlays;
|
|
patches = import ./patches;
|
|
};
|
|
}
|