rm -fr certget:

This commit is contained in:
Motiejus Jakštys 2024-02-02 15:02:31 +02:00 committed by Motiejus Jakštys
parent 7542e1cadb
commit 64c4534d46
4 changed files with 0 additions and 41 deletions

View File

@ -15,8 +15,6 @@ rec {
jakstpub = 505;
certget = 506;
photoprism = 507;
};

View File

@ -76,12 +76,6 @@
node_exporter.enable = true;
sshguard.enable = true;
certget = {
enable = true;
uidgid = myData.uidgid.certget;
sshKeys = [myData.hosts."vno1-oh2.servers.jakst".publicKey];
};
borgstor = {
enable = true;
dataDir = "/data/borg";

View File

@ -1,32 +0,0 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.mj.services.certget;
in {
options.mj.services.certget = with lib.types; {
enable = lib.mkEnableOption "receive acme certs from somewhere";
uidgid = lib.mkOption {type = int;};
sshKeys = lib.mkOption {type = listOf str;};
};
config = lib.mkIf cfg.enable {
users.users.certget = {
description = "Cert Getter";
home = "/var/lib/certget";
shell = "/bin/sh";
group = "certget";
isSystemUser = true;
createHome = true;
uid = cfg.uidgid;
openssh.authorizedKeys.keys =
map (
k: "command=\"${pkgs.rrsync}/bin/rrsync /var/lib/certget\",restrict ${k}"
)
cfg.sshKeys;
};
users.groups.certget.gid = cfg.uidgid;
};
}

View File

@ -1,7 +1,6 @@
{...}: {
imports = [
./borgstor
./certget
./deployerbot
./friendlyport
./gitea