mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
chore: reformat codebase
This commit is contained in:
parent
52d2f0186e
commit
55cbb8f23a
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user