Add patch switch

This commit is contained in:
muon 2025-01-02 12:43:05 +00:00
parent 9033ab614d
commit ddf8280804
2 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,12 @@
{ inputs, system, pkgs, nixpkgs, ... }: {
{ builtins, inputs, system, pkgs, ... }: {
mkHost = host:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs system pkgs nixpkgs; };
specialArgs = let name = builtins.match "muho" (builtins.toString host);
in if name == "muho" then {
inherit inputs system pkgs;
} else {
inherit inputs system;
};
modules = [
host