Update nix

This commit is contained in:
muon 2025-01-13 15:40:24 +00:00
parent 8920fa33bc
commit f1ec089354
4 changed files with 14 additions and 46 deletions

View file

@ -1,15 +1,7 @@
{ builtins, inputs, system, pkgs, ... }: {
{ inputs, system, ... }: {
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;
};
specialArgs = { inherit inputs system; };
modules = [
host