35 lines
810 B
Nix
35 lines
810 B
Nix
![]() |
{ config, pkgs, environment, ... }:
|
||
|
|
||
|
let
|
||
|
databasePath = /var/heimdal/heimdal;
|
||
|
|
||
|
in {
|
||
|
environment = {
|
||
|
systemPackages = with pkgs; [
|
||
|
heimdalFull
|
||
|
];
|
||
|
};
|
||
|
|
||
|
systemd.services = {
|
||
|
heimdal-kdc = {
|
||
|
enable = true;
|
||
|
wantedBy = [ "multi-user.target" ];
|
||
|
after = [ "network.target" ];
|
||
|
description = "Heimdal Kerberos Key Distribution Center (ticket server)";
|
||
|
serviceConfig = {
|
||
|
ExecStart = ''${pkgs.heimdalFull}/libexec/heimdal/kdc'';
|
||
|
};
|
||
|
};
|
||
|
|
||
|
heimdal-admin-server = {
|
||
|
enable = true;
|
||
|
wantedBy = [ "multi-user.target" ];
|
||
|
after = [ "network.target" ];
|
||
|
description = "Heimdal Kerberos Remote Administration Server";
|
||
|
serviceConfig = {
|
||
|
ExecStart = ''${pkgs.heimdalFull}/libexec/heimdal/kadmind'';
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|