formatting?
This commit is contained in:
parent
608982d8f2
commit
7486f2409b
1 changed files with 20 additions and 11 deletions
15
flake.nix
15
flake.nix
|
@ -24,9 +24,18 @@
|
||||||
let
|
let
|
||||||
lib = import ./lib { inherit (nixpkgs) lib; };
|
lib = import ./lib { inherit (nixpkgs) lib; };
|
||||||
|
|
||||||
cleanHostname = config: builtins.removeAttrs config [ "hostname" ];
|
cleanHostname =
|
||||||
toPartialNixosConfigSet = config: { name = config.hostname; value = nixpkgs.lib.nixosSystem (cleanHostname config); };
|
config:
|
||||||
toNixosSystemConfig = { hostname, system }: {
|
builtins.removeAttrs config [ "hostname" ];
|
||||||
|
toPartialNixosConfigSet =
|
||||||
|
config:
|
||||||
|
{
|
||||||
|
name = config.hostname;
|
||||||
|
value = nixpkgs.lib.nixosSystem (cleanHostname config);
|
||||||
|
};
|
||||||
|
toNixosSystemConfig =
|
||||||
|
{ hostname, system }:
|
||||||
|
{
|
||||||
inherit system hostname;
|
inherit system hostname;
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
modules = [
|
modules = [
|
||||||
|
|
Loading…
Reference in a new issue