chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2024-01-17 17:58:00 +08:00
parent 52d2f0186e
commit 55cbb8f23a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 17 additions and 17 deletions

View File

@ -5,7 +5,7 @@
flake = flake-parts-lib.mkSubmoduleOptions { flake = flake-parts-lib.mkSubmoduleOptions {
homeConfigurations = lib.mkOption { homeConfigurations = lib.mkOption {
type = with lib.types; lazyAttrsOf raw; type = with lib.types; lazyAttrsOf raw;
default = {}; default = { };
description = '' description = ''
Instantiated home-manager configurations. Instantiated home-manager configurations.

View File

@ -278,13 +278,13 @@ in
deployConfig = cfg.configs.${name}.deploy; deployConfig = cfg.configs.${name}.deploy;
deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ]; deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ];
in in
deployConfig' deployConfig'
// { // {
profiles = profiles =
cfg.configs.${name}.deploy.profiles { cfg.configs.${name}.deploy.profiles {
inherit name config system; inherit name config system;
}; };
} }
); );
in in
lib.concatMapAttrs lib.concatMapAttrs

View File

@ -357,13 +357,13 @@ in
deployConfig = cfg.configs.${name}.deploy; deployConfig = cfg.configs.${name}.deploy;
deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ]; deployConfig' = lib.attrsets.removeAttrs deployConfig [ "profiles" ];
in in
deployConfig' deployConfig'
// { // {
profiles = profiles =
cfg.configs.${name}.deploy.profiles { cfg.configs.${name}.deploy.profiles {
inherit name config system; inherit name config system;
}; };
} }
); );
in in
lib.concatMapAttrs lib.concatMapAttrs
@ -377,7 +377,7 @@ in
let let
validImages = lib.filterAttrs validImages = lib.filterAttrs
(host: metadata: (host: metadata:
metadata.formats != null && (lib.elem system metadata.systems)) metadata.formats != null && (lib.elem system metadata.systems))
cfg.configs; cfg.configs;
generateImages = name: metadata: generateImages = name: metadata:
@ -394,7 +394,7 @@ in
images = images =
builtins.map buildImage metadata.formats; builtins.map buildImage metadata.formats;
in in
lib.listToAttrs images; lib.listToAttrs images;
in in
lib.concatMapAttrs generateImages validImages; lib.concatMapAttrs generateImages validImages;
}; };