chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2023-12-13 11:28:45 +08:00
parent a526f5d505
commit 3714f843d0
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 41 additions and 37 deletions

View File

@ -376,7 +376,7 @@
lib'.mapAttrs
(host: metadata:
mkHost {
extraModules = [(hostSpecificModule host metadata)];
extraModules = [ (hostSpecificModule host metadata) ];
system = metadata._system;
nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs";
})
@ -454,7 +454,7 @@
in
lib'.nameValuePair name (mkImage {
inherit format system pkgs;
extraModules = [(hostSpecificModule host metadata)];
extraModules = [ (hostSpecificModule host metadata) ];
}))
images');

View File

@ -177,7 +177,8 @@ in
zone services;
keepalive 2;
'';
servers = let
servers =
let
address = config.services.vaultwarden.config.ROCKET_ADDRESS;
port = config.services.vaultwarden.config.ROCKET_PORT;
in

View File

@ -13,13 +13,15 @@ in
config = lib.mkIf cfg.enable (lib.mkMerge [
{
sops.secrets = let
sops.secrets =
let
vouchPermissions = rec {
owner = "vouch-proxy";
group = owner;
mode = "0400";
};
in lib.getSecrets ../../secrets/secrets.yaml {
in
lib.getSecrets ../../secrets/secrets.yaml {
"vouch-proxy/jwt/secret" = vouchPermissions;
"vouch-proxy/client/secret" = vouchPermissions;
};

View File

@ -8,7 +8,8 @@ let
# values with shell expansions.
toDistroboxConf = lib.generators.toKeyValue {
listsAsDuplicateKeys = false;
mkKeyValue = lib.generators.mkKeyValueDefault {
mkKeyValue = lib.generators.mkKeyValueDefault
{
mkValueString = v:
if v == true then "1"
else if v == false then "0"
@ -19,7 +20,7 @@ let
} "=";
};
distroboxConf = { }: {
distroboxConf = {}: {
type = with lib.types;
let
valueType = (oneOf [