mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
21 lines
566 B
Nix
21 lines
566 B
Nix
{ builtins, inputs, system, pkgs, ... }: {
|
|
mkHost = host:
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
specialArgs = with builtins;
|
|
let
|
|
hasInfix = infix: content: match ".*${infix}.*" "${content}" != null;
|
|
muho = hasInfix "/muho/" (toString host);
|
|
in if muho then {
|
|
inherit inputs system pkgs;
|
|
} else {
|
|
inherit inputs system;
|
|
};
|
|
|
|
modules = [
|
|
host
|
|
./modules/nixos
|
|
inputs.home-manager.nixosModules.default
|
|
inputs.stylix.nixosModules.stylix
|
|
];
|
|
};
|
|
}
|