inital (no configs)

This commit is contained in:
Winter Hille 2025-11-05 14:52:59 -08:00
commit 123516bfdf
7 changed files with 113 additions and 0 deletions

46
flake.nix Normal file
View file

@ -0,0 +1,46 @@
{
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;
};
}