current state of things
This commit is contained in:
parent
63fbd6d499
commit
b8d157ab6f
85 changed files with 895 additions and 6014 deletions
53
create.nix
Normal file
53
create.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
system,
|
||||
inputs,
|
||||
sharedModules,
|
||||
...
|
||||
}:
|
||||
with inputs;
|
||||
let
|
||||
nix-rice = import "${inputs.nix-rice}/lib.nix" {
|
||||
inherit (nixpkgs) lib;
|
||||
kitty-themes-src = { };
|
||||
};
|
||||
rice = import ./rice {
|
||||
inherit
|
||||
inputs
|
||||
system
|
||||
nix-rice
|
||||
;
|
||||
};
|
||||
in
|
||||
{
|
||||
systems =
|
||||
definitions:
|
||||
nixpkgs.lib.mapAttrs (
|
||||
name: info:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
specialArgs = {
|
||||
inherit inputs rice;
|
||||
mainUser = info.user;
|
||||
};
|
||||
modules =
|
||||
[
|
||||
./system/${name}.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
extraSpecialArgs = {
|
||||
inherit inputs rice nix-rice;
|
||||
mainUser = info.user;
|
||||
};
|
||||
users.${info.user}.imports = [
|
||||
./home/${info.user}.nix
|
||||
] ++ info.hmImports or [ ];
|
||||
};
|
||||
}
|
||||
]
|
||||
++ info.imports or [ ]
|
||||
++ sharedModules;
|
||||
}
|
||||
) definitions;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue