Merge pull request 'ClanModule: init Admin module' (#1978) from hsjobeki/clan-core:hsjobeki-main into main

This commit is contained in:
clan-bot
2024-08-26 16:57:21 +00:00
6 changed files with 64 additions and 7 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 = {
admin = ./admin;
borgbackup = ./borgbackup;
borgbackup-static = ./borgbackup-static;
deltachat = ./deltachat;