nixos-25.11
This commit is contained in:
parent
18871b8617
commit
549b3633d1
6 changed files with 76 additions and 117 deletions
|
|
@ -2,7 +2,7 @@
|
|||
lib,
|
||||
writeText,
|
||||
writeShellApplication,
|
||||
substituteAll,
|
||||
replaceVars,
|
||||
gum,
|
||||
inputs,
|
||||
hosts ? { },
|
||||
|
|
@ -13,8 +13,6 @@ let
|
|||
inherit (lib) mapAttrsToList concatStringsSep;
|
||||
inherit (lib.metacfg) override-meta;
|
||||
|
||||
substitute = args: builtins.readFile (substituteAll args);
|
||||
|
||||
formatted-hosts = mapAttrsToList (name: host: "${name},${host.pkgs.system}") hosts;
|
||||
|
||||
hosts-csv = writeText "hosts.csv" ''
|
||||
|
|
@ -25,9 +23,7 @@ let
|
|||
nixos-hosts = writeShellApplication {
|
||||
name = "nixos-hosts";
|
||||
|
||||
text = substitute {
|
||||
src = ./nixos-hosts.sh;
|
||||
|
||||
text = replaceVars ./nixos-hosts.sh {
|
||||
help = ./help;
|
||||
hosts = if hosts == { } then "" else hosts-csv;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue