rm -fr certget:
This commit is contained in:
parent
7542e1cadb
commit
64c4534d46
@ -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";
|
||||
|
@ -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;
|
||||
};
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./borgstor
|
||||
./certget
|
||||
./deployerbot
|
||||
./friendlyport
|
||||
./gitea
|
||||
|
Loading…
Reference in New Issue
Block a user