basic implementation for own packages/services

This commit is contained in:
2025-09-15 13:01:04 +02:00
parent 583dd62731
commit fc71ffdb18
4 changed files with 28 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
}:
let
cfg = config.services.corosync-qnetd;
dataDir = "/var/run/corosync-qnetd";
in
{
# interface
@@ -27,6 +28,15 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
users.users.coroqnetd = {
isSystemUser = true;
group = "coroqnetd";
home = dataDir;
description = "Corosync-qnetd Service User";
};
users.groups.coroqnetd = { };
# environment.etc."corosync/corosync-qnetd.conf".text = ''
# totem {
# version: 2