From 7486f2409b0ff9f66b49c8cc4bbb8eed6eef80e6 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Fri, 28 Jun 2024 07:55:01 -0700 Subject: [PATCH] formatting? --- flake.nix | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 514aa48..8bda6ae 100644 --- a/flake.nix +++ b/flake.nix @@ -24,17 +24,26 @@ 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 }: { - inherit system hostname; - specialArgs = { inherit inputs; }; - modules = [ - ./hosts/${hostname}/hardware-configuration.nix - ./hosts/${hostname}/configuration.nix - inputs.home-manager.nixosModules.default - ]; - }; + 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 = [ + ./hosts/${hostname}/hardware-configuration.nix + ./hosts/${hostname}/configuration.nix + inputs.home-manager.nixosModules.default + ]; + }; compileSystems = systems: lib.right builtins.listToAttrs (map toPartialNixosConfigSet) (map toNixosSystemConfig) systems; in compileSystems