progress on dex...

This commit is contained in:
gabriel-doriath-dohler 2022-01-25 23:59:59 +00:00
parent 52d0f1433a
commit e290a918a0
6 changed files with 37 additions and 21 deletions

View file

@ -8,7 +8,7 @@ let
nixos-config.symlink = "config/${machine}/configuration.nix";
nixpkgs.git = {
clean.exclude = [ "/.version-suffix" ];
ref = "973910f5c31b9ba6c171c33a8bd7199990b14c72"; # nixos-21.05
ref = "e96c668072d7c98ddf2062f6d2b37f84909a572b"; # nixos-22.05
url = "https://github.com/NixOS/nixpkgs";
};
}];

View file

@ -20,6 +20,7 @@
./acme-dns.nix
./backups.nix
./dex.nix
./oauth2_proxy.nix
./secrets
# TODO push to gitea
# TODO ./gotify.nix

View file

@ -6,26 +6,16 @@ in
services.dex = {
enable = true;
settings = {
issuer = "";
issuer = "http://127.0.0.1:5556/dex";
storage = {
type = "sqlite3";
config.file = "gitea/dex.db";
};
enablePasswordDB = true;
/*
web = {
http = "";
http = "127.0.0.1:5556";
};
staticClients = [
{
id = "oidcclient";
name = "Client";
redirectURIs = [ "/callback" ];
secretFile = "/etc/dex/oidcclient";
}
];
*/
connectors = {
connectors = [ {
type = "gitea";
id = "gitea";
name = "Gitea";
@ -35,7 +25,7 @@ in
redirectURL = "http://127.0.0.1:5556/dex/callback";
baseURL = "https://git.${my.subZone}";
};
};
} ];
};
};
}

View file

@ -4,17 +4,12 @@ let
my = config.my;
in
{
services.dokuwiki."wiki.${my.subZone}" = {
services.dokuwiki.sites."wiki.${my.subZone}" = {
enable = true;
hostName = "wiki.${my.subZone}";
acl = ''
* @ALL 1
* @admin 16
'';
nginx = {
enableACME = true;
forceSSL = true;
};
};
/*

View file

@ -0,0 +1,5 @@
{ ... }:
{
users.users.oauth2_proxy.group = "oauth2_proxy";
users.groups.oauth2_proxy = {};
}

View file

@ -0,0 +1,25 @@
age-encryption.org/v1
-> ssh-rsa krWCLQ
XmhJgoyNhXrHw08PTNMkLByPv7mmfqk2ZJ6yTihd2v4ZHdnHN9/nuWnBoK5KJod1
9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