Add minimal modular setup

This commit is contained in:
muon 2024-05-28 15:55:10 +00:00
commit e81d8c9be4
19 changed files with 351 additions and 0 deletions

19
utils.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, inputs, system, ... }: {
mkHost = host: inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system pkgs; };
modules = [
host
./modules/nixos
];
};
mkHome = host: inputs.home-manager.lib.homeMangerConfiguration {
inherit pkgs;
modules = [
host
./modules/home
];
};
}