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
a526f5d505
commit
3714f843d0
@ -376,7 +376,7 @@
|
|||||||
lib'.mapAttrs
|
lib'.mapAttrs
|
||||||
(host: metadata:
|
(host: metadata:
|
||||||
mkHost {
|
mkHost {
|
||||||
extraModules = [(hostSpecificModule host metadata)];
|
extraModules = [ (hostSpecificModule host metadata) ];
|
||||||
system = metadata._system;
|
system = metadata._system;
|
||||||
nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs";
|
nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs";
|
||||||
})
|
})
|
||||||
@ -454,7 +454,7 @@
|
|||||||
in
|
in
|
||||||
lib'.nameValuePair name (mkImage {
|
lib'.nameValuePair name (mkImage {
|
||||||
inherit format system pkgs;
|
inherit format system pkgs;
|
||||||
extraModules = [(hostSpecificModule host metadata)];
|
extraModules = [ (hostSpecificModule host metadata) ];
|
||||||
}))
|
}))
|
||||||
images');
|
images');
|
||||||
|
|
||||||
|
@ -177,7 +177,8 @@ in
|
|||||||
zone services;
|
zone services;
|
||||||
keepalive 2;
|
keepalive 2;
|
||||||
'';
|
'';
|
||||||
servers = let
|
servers =
|
||||||
|
let
|
||||||
address = config.services.vaultwarden.config.ROCKET_ADDRESS;
|
address = config.services.vaultwarden.config.ROCKET_ADDRESS;
|
||||||
port = config.services.vaultwarden.config.ROCKET_PORT;
|
port = config.services.vaultwarden.config.ROCKET_PORT;
|
||||||
in
|
in
|
||||||
|
@ -13,13 +13,15 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
sops.secrets = let
|
sops.secrets =
|
||||||
|
let
|
||||||
vouchPermissions = rec {
|
vouchPermissions = rec {
|
||||||
owner = "vouch-proxy";
|
owner = "vouch-proxy";
|
||||||
group = owner;
|
group = owner;
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
};
|
};
|
||||||
in lib.getSecrets ../../secrets/secrets.yaml {
|
in
|
||||||
|
lib.getSecrets ../../secrets/secrets.yaml {
|
||||||
"vouch-proxy/jwt/secret" = vouchPermissions;
|
"vouch-proxy/jwt/secret" = vouchPermissions;
|
||||||
"vouch-proxy/client/secret" = vouchPermissions;
|
"vouch-proxy/client/secret" = vouchPermissions;
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,8 @@ let
|
|||||||
# values with shell expansions.
|
# values with shell expansions.
|
||||||
toDistroboxConf = lib.generators.toKeyValue {
|
toDistroboxConf = lib.generators.toKeyValue {
|
||||||
listsAsDuplicateKeys = false;
|
listsAsDuplicateKeys = false;
|
||||||
mkKeyValue = lib.generators.mkKeyValueDefault {
|
mkKeyValue = lib.generators.mkKeyValueDefault
|
||||||
|
{
|
||||||
mkValueString = v:
|
mkValueString = v:
|
||||||
if v == true then "1"
|
if v == true then "1"
|
||||||
else if v == false then "0"
|
else if v == false then "0"
|
||||||
@ -19,7 +20,7 @@ let
|
|||||||
} "=";
|
} "=";
|
||||||
};
|
};
|
||||||
|
|
||||||
distroboxConf = { }: {
|
distroboxConf = {}: {
|
||||||
type = with lib.types;
|
type = with lib.types;
|
||||||
let
|
let
|
||||||
valueType = (oneOf [
|
valueType = (oneOf [
|
||||||
|
Loading…
Reference in New Issue
Block a user