updated soteria settings
This commit is contained in:
@@ -17,21 +17,8 @@ in
|
||||
nixos.forgejo
|
||||
# nixos.restic-server
|
||||
# nixos.restic-envoy
|
||||
({ pkgs, ... }: {
|
||||
({ config, pkgs, ... }: {
|
||||
networking.hostName = hostname;
|
||||
mtls = {
|
||||
enable = true;
|
||||
subject = hostname;
|
||||
san = [
|
||||
"${hostname}.john-stream.com"
|
||||
"192.168.1.142"
|
||||
];
|
||||
lifetime = "1h";
|
||||
renew.onCalendar = "*:3/15";
|
||||
renew.postCommands = [
|
||||
"${lib.getExe pkgs.docker} restart envoy"
|
||||
];
|
||||
};
|
||||
|
||||
# Removes password for sudo
|
||||
security.sudo-rs.extraRules = lib.mkAfter [
|
||||
@@ -45,13 +32,31 @@ in
|
||||
];
|
||||
}
|
||||
];
|
||||
# nix.settings.build-dir = "/var/tmp/nix-build";
|
||||
# systemd.tmpfiles.rules = [
|
||||
# "d /var/tmp/nix-build 1777 root root -"
|
||||
# ];
|
||||
step-ssh-host = {
|
||||
hostname = hostname;
|
||||
|
||||
users.users."${username}".extraGroups = [ "mtls" ];
|
||||
mtls = {
|
||||
enable = true;
|
||||
certDir = config.janus-ca.certDir;
|
||||
subject = hostname;
|
||||
san = [
|
||||
"${hostname}.john-stream.com"
|
||||
# "192.168.1.142"
|
||||
"forgejo.john-stream.com"
|
||||
"192.168.1.244"
|
||||
];
|
||||
lifetime = "12h";
|
||||
renew.onCalendar = "*:3/15";
|
||||
renew.reloadUnits = [ "forgejo.service" ];
|
||||
certReaders = [ config.services.forgejo.user "postgres" ];
|
||||
};
|
||||
forgejo = {
|
||||
enable = true;
|
||||
https = true;
|
||||
port = 443;
|
||||
};
|
||||
|
||||
step-ssh-host.hostname = hostname;
|
||||
|
||||
# This provides the secrets at install time
|
||||
sops.defaultSopsFile = ./secrets.yaml;
|
||||
|
||||
@@ -66,8 +71,6 @@ in
|
||||
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.janus-ca
|
||||
inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.my-neovim
|
||||
];
|
||||
|
||||
forgejo.enable = true;
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user