formatting?

sh-initrd-on-root
Zynh Ludwig 2024-06-28 07:55:01 -07:00
parent 608982d8f2
commit 7486f2409b
1 changed files with 20 additions and 11 deletions

View File

@ -24,9 +24,18 @@
let
lib = import ./lib { inherit (nixpkgs) lib; };
cleanHostname = config: builtins.removeAttrs config [ "hostname" ];
toPartialNixosConfigSet = config: { name = config.hostname; value = nixpkgs.lib.nixosSystem (cleanHostname config); };
toNixosSystemConfig = { hostname, system }: {
cleanHostname =
config:
builtins.removeAttrs config [ "hostname" ];
toPartialNixosConfigSet =
config:
{
name = config.hostname;
value = nixpkgs.lib.nixosSystem (cleanHostname config);
};
toNixosSystemConfig =
{ hostname, system }:
{
inherit system hostname;
specialArgs = { inherit inputs; };
modules = [