From 55cbb8f23acbedb148bef529bfdbaba50a995b0a Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 17 Jan 2024 17:58:00 +0800 Subject: [PATCH] chore: reformat codebase --- modules/flake-parts/home-configurations.nix | 2 +- modules/flake-parts/setups/home-manager.nix | 14 +++++++------- modules/flake-parts/setups/nixos.nix | 18 +++++++++--------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/flake-parts/home-configurations.nix b/modules/flake-parts/home-configurations.nix index 7e5bd27b..c041a5ee 100644 --- a/modules/flake-parts/home-configurations.nix +++ b/modules/flake-parts/home-configurations.nix @@ -5,7 +5,7 @@ flake = flake-parts-lib.mkSubmoduleOptions { homeConfigurations = lib.mkOption { type = with lib.types; lazyAttrsOf raw; - default = {}; + default = { }; description = '' Instantiated home-manager configurations. diff --git a/modules/flake-parts/setups/home-manager.nix b/modules/flake-parts/setups/home-manager.nix index 469e5943..dc0d4ef6 100644 --- a/modules/flake-parts/setups/home-manager.nix +++ b/modules/flake-parts/setups/home-manager.nix @@ -278,13 +278,13 @@ in deployConfig = cfg.configs.${name}.deploy; deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ]; in - deployConfig' - // { - profiles = - cfg.configs.${name}.deploy.profiles { - inherit name config system; - }; - } + deployConfig' + // { + profiles = + cfg.configs.${name}.deploy.profiles { + inherit name config system; + }; + } ); in lib.concatMapAttrs diff --git a/modules/flake-parts/setups/nixos.nix b/modules/flake-parts/setups/nixos.nix index 2e26fe9b..8a8a2798 100644 --- a/modules/flake-parts/setups/nixos.nix +++ b/modules/flake-parts/setups/nixos.nix @@ -357,13 +357,13 @@ in deployConfig = cfg.configs.${name}.deploy; deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ]; in - deployConfig' - // { - profiles = - cfg.configs.${name}.deploy.profiles { - inherit name config system; - }; - } + deployConfig' + // { + profiles = + cfg.configs.${name}.deploy.profiles { + inherit name config system; + }; + } ); in lib.concatMapAttrs @@ -377,7 +377,7 @@ in let validImages = lib.filterAttrs (host: metadata: - metadata.formats != null && (lib.elem system metadata.systems)) + metadata.formats != null && (lib.elem system metadata.systems)) cfg.configs; generateImages = name: metadata: @@ -394,7 +394,7 @@ in images = builtins.map buildImage metadata.formats; in - lib.listToAttrs images; + lib.listToAttrs images; in lib.concatMapAttrs generateImages validImages; };