rm -fr certget:

This commit is contained in:
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

@@ -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