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 {
homeConfigurations = lib.mkOption {
type = with lib.types; lazyAttrsOf raw;
default = {};
default = { };
description = ''
Instantiated home-manager configurations.

View File

@ -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

View File

@ -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;
};