ClanModules: add admin module

This commit is contained in:
Johannes Kirschbauer
2024-08-26 18:33:47 +02:00
parent e17ef97c4a
commit 0e390f79d0
4 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
description = "Convenient Administration for the Clan App"
categories = ["administration"]
---

View File

@@ -0,0 +1,17 @@
{ lib, config, ... }:
{
options.clan.admin = {
allowedKeys = lib.mkOption {
default = [ ];
type = lib.types.listOf lib.types.str;
description = "The allowed public keys for ssh access to the admin user";
};
};
imports = [
../sshd
../root-password
];
config = {
users.users.root.openssh.authorizedKeys.keys = config.clan.admin.allowedKeys;
};
}

View File

@@ -0,0 +1 @@
{ }

View File

@@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
flake.clanModules = { flake.clanModules = {
admin = ./admin;
borgbackup = ./borgbackup; borgbackup = ./borgbackup;
borgbackup-static = ./borgbackup-static; borgbackup-static = ./borgbackup-static;
deltachat = ./deltachat; deltachat = ./deltachat;