mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Fix match
This commit is contained in:
parent
ddf8280804
commit
aaa78b5079
1 changed files with 9 additions and 6 deletions
|
|
@ -1,8 +1,11 @@
|
|||
{ builtins, inputs, system, pkgs, ... }: {
|
||||
mkHost = host:
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
specialArgs = let name = builtins.match "muho" (builtins.toString host);
|
||||
in if name == "muho" then {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue