mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Update nix
This commit is contained in:
parent
8920fa33bc
commit
f1ec089354
4 changed files with 14 additions and 46 deletions
12
utils.nix
12
utils.nix
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue