Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Nov 18, 2024
1 parent 0400e96 commit 1c11422
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
41 changes: 21 additions & 20 deletions nix/modules/nixos/containers/authelia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,32 @@ in {

config = mkIf cfg.enable {
sops.secrets = {
authelia-env = {
# authelia-env = {
# sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
# uid = 999;
# restartUnits = ["[email protected]"];
# };
authelia-storage-encryption-key = {
sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
uid = 999;
restartUnits = ["[email protected]"];
};
authelia-storage-encryption-key = {
authelia-jwt-secret = {
sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
uid = 999;
restartUnits = ["[email protected]"];
};
authelia-jwt_secret = {
authelia-session-secret = {
sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
uid = 999;
restartUnits = ["[email protected]"];
};
authelia-session_secret = {
"authelia-jwt-rsa-key" = {
# format = "binary";
sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
uid = 999;
restartUnits = ["[email protected]"];
};
# "authelia-jwt_rsa_key.pem" = {
# # format = "binary";
# sopsFile = lib.snowfall.fs.get-file "${cfg.secret_file}";
# uid = 999;
# restartUnits = ["[email protected]"];
# };
};
containers.authelia = {
ephemeral = true;
Expand All @@ -74,21 +74,21 @@ in {

# Mounting Cloudflare creds(email and dns api token) as file
bindMounts = {
"${config.sops.secrets.authelia-env.path}" = {
# "${config.sops.secrets.authelia-env.path}" = {
# isReadOnly = true;
# };
"${config.sops.secrets.authelia-storage-encryption-key.path}" = {
isReadOnly = true;
};
"${config.sops.secrets.authelia-storage-encryption-key.path}" = {
"${config.sops.secrets.authelia-session-secret.path}" = {
isReadOnly = true;
};
"${config.sops.secrets.authelia-session_secret.path}" = {
"${config.sops.secrets.authelia-jwt-secret.path}" = {
isReadOnly = true;
};
"${config.sops.secrets.authelia-jwt_secret.path}" = {
"${config.sops.secrets.authelia-jwt-rsa-key.path}" = {
isReadOnly = true;
};
# "${config.sops.secrets."authelia-jwt_rsa_key.pem".path}" = {
# isReadOnly = true;
# };

"/var/lib/authelia-main/users/" = {
hostPath = "${cfg.dataPath}/users/";
Expand All @@ -104,14 +104,15 @@ in {
};
};
config = {...}: {
systemd.services.authelia-main.serviceConfig.EnvironmentFile = "/run/secrets/authelia-env";
# systemd.services.authelia-main.serviceConfig.EnvironmentFile = "/run/secrets/authelia-env";
services.authelia.instances = {
main = {
enable = true;
secrets = {
storageEncryptionKeyFile = config.sops.secrets.authelia-storage-encryption-key.path;
jwtSecretFile = config.sops.secrets.authelia-jwt_secret.path;
sessionSecretFile = config.sops.secrets.authelia-session_secret.path;
jwtSecretFile = config.sops.secrets.authelia-jwt-secret.path;
sessionSecretFile = config.sops.secrets.authelia-session-secret.path;
oidcIssuerPrivateKeyFile = config.sops.secrets.authelia-jwt-rsa-key.path;
# manual = true;
};

Expand Down
10 changes: 5 additions & 5 deletions nix/secrets/serverz/default.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
traefik-cf-env: ENC[AES256_GCM,data:g7Xw9UM1FeOFh+R0jGmPl9Gipix2WNilkCw30iDutxduhYCRmh3cye4D43Zy5x31kvdHej0pwlaSgEVbDOfBMoeENezrcDnLd3xqZHks75QleXv8Ujqoag==,iv:w/byUzrl/9+qcMnUERmO7RYpk991WbhRtcBJkIQIF1o=,tag:CxFiyegx/ZhzU+CU0Bkabg==,type:str]
authelia-env: ENC[AES256_GCM,data:6fFB2jhyMiGKY/Y/cbel3p9wkEX72OPYHjoEereC7vj6kVH6fne7ctCKFgzZF0bGyET6iS7sh01Xgj+BNCejdSAoqjouoUHBcFc3VE7Vrecg/0LLDjLZ4sc1Fd1ZGLvcPNDTVL0j7UQTBX0MirB1yy4t2s1gNLUvjunwxtglLaAxjDIi541pZb4d9FL/BJ1g76dvGLIlyF4tKssSPSujLls/JrlG3/jbdrmS4sbA+ZI=,iv:eqeV4P1Rw0RxQqs//oYTzEQLyavLfbvKkz2JXs9fkmc=,tag:1rsGSeGVn3c3IYAsfghTXw==,type:str]
authelia-jwt_secret: ENC[AES256_GCM,data:Y+B6kS6Zoo9Z2h5VPbn0mwFiP9sdWAPP/ztCNbtGRa+6Slt9HP9ccbWcno7kdi6LdHq+ocEJJTOHnztmLBMxZQ==,iv:CyCga7SDtpYVl2GDOcA4eFCqx4bDmEhkM2kFD74laJU=,tag:nKLzB8+vrOPnwf0x+F/G4g==,type:str]
authelia-session_secret: ENC[AES256_GCM,data:h5ypDJtUSkF+dtD1edMlXATx6tkTejTG93n3enZz8VwUuMdxjYhIiA7R4KpRpXbgdDbRRbgjb+naunTAZZjQpw==,iv:5wUFCQfOxkSZ9RnMG7fU3U5neAM4jkE5+mP33JyNjSo=,tag:uK5682nzik96MTy6xtrCmw==,type:str]
authelia-jwt-secret: ENC[AES256_GCM,data:Qi2GwqjBNbl0j3kOXR0xRRmt0RQqEvOIm5p6b3mGBHPpMJk2DK3GvcnX2BBxIODn/BoXvRqLQLyLhhMahFKKKw==,iv:U6laZv5AQPdKuhwm8pViHXQNlPAMa9DdtFYjzDx0ULI=,tag:MwZ8ase4Z7VLZMHaEWUcTA==,type:str]
authelia-session-secret: ENC[AES256_GCM,data:qgCJ9d4PwiUYhUEeuzRL+hXb1mMt0W17LNPDOdYyWLzw/8jsS2zADKhIA4mJdlZ+VPrf0BslsNZEz/fmFT+wRw==,iv:gs7JXN07k5fksMhL2zTgk6U5jgMCwek2Jh8WoBZrIaE=,tag:fZJHLf/FSDZcXO2KBlLyoQ==,type:str]
authelia-storage-encryption-key: ENC[AES256_GCM,data:ub+rSg3lNyxVJapVhMJBu+9kfG6ToSJSXmgie3qOvlkRZy4oLYdEIvgcie9yZ6CnSAASMLVBX8GSt2XKee8Lbg==,iv:vHNERwAxZ8ndFKANC40GUqt1JF1ivBOPWt70MWgSMso=,t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IN1yjzNYLVwuNxb80jwwDPOGlee/rmIPCW/yKlOedl+aQQSKwAh8fi/UOTn+rzGJaVTmpb5Ans+d0aXs8DKBxDGCk5XLb/By9D/p3vXRXnvpdul16MSWrk3QDwfTTIPD6EGw2pjpXjKy7xnIsHe6BIWEElYu7WlCoMVFwLX09Cbat6YelLu/uuI2eNzTaAZXBgGTckBZMvFBRzsS8TDwZvfaUbuLGNDq8abUt5I0lOz/+vsZFUqxWuEC/H5izjZcUwUbvDMZ18Bhe+YptQ7CmqIcolDoarjLbubiNc/Gmou1egSG69/cRnkGb2wNZqqCIdxzBWTI2b09YM2bJDxd4lxitdNt5iP7G0a4ohkAhgJnr4ro=,iv:1Mdm76uIxkYvK4NO0HlvO5azAx5npHCHrHs74i1qzCA=,tag:M2o2mTE0jAtQLmpzy4tsoQ==,type:str]
nextcloud-admin-pass: ENC[AES256_GCM,data:yJFfJ7K/gyM71omo//qURGs=,iv:5JmRGdHHtJtiZeuF4kjok2nUrWQArRRTr5XbwJtDXxI=,tag:SY9Lz7QMCNoixUesA3Q9WQ==,type:str]
sops:
kms: []
Expand All @@ -29,8 +29,8 @@ sops:
SVdkN2htWTBaLy9jdGJ6S0RocE9JMFUK8yejh6yKp+OLsNFXWHUJzvHnwaGI1yXA
Y4F7JY6bhXcu8KJGvjgy08ox+n82V6xY9ov1hwhUlfyIZf4H0/bjuA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-11-18T11:04:07Z"
mac: ENC[AES256_GCM,data:xyoVGkZcl/HK7TaYAew5HMrFJuBW3fj7pnriWvl885/aJPd27o3MvVnZnW2MCjC9CFKdlXrVamfm6W8q4p7Y2ZVCoMK3o9n5qm9Lynjro3vKn2qPYKjSF/5OocFathAow2L+UOacTCiNl9CFdevKRjWAgybpOzjjCdjBdjz9Hsw=,iv:SQo0nKgbnAXCn8B6yvr9msAiv3PlhkoyszR6KP7fWIQ=,tag:1r7IdPnuaEm+mgLC40+NoQ==,type:str]
lastmodified: "2024-11-18T11:21:28Z"
mac: ENC[AES256_GCM,data:zdhnrIy+QcoUcPG6c18R0B8OPT/I/4QXFkJL4gcPmDaz3bMrKvXfV9JNdNHeQdVx3VV95h02ymYn1KtlXIKVWzAxiPpWWOf5dKdiDzFOb7pnK3uBn6KdMWtSJCc45WHdGNQWn3Fq880foi39IXzC8npfuWcEtm7SZjy4KsN1F0E=,iv:Ki2RLnPzbgWjU1/iWsuhKvylzwPuU9msSKfAhCUJZUQ=,tag:ZFQl4+bVYhWE7opoz75Mhw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.1

0 comments on commit 1c11422

Please sign in to comment.