echtnurich
f6b424fa7a
introduce /etc/yate, clone/reset on service start Fix config via git make yate systemd service create yate service user recreate the full config everytime decolour the log because of blob data make sure source is available before deleting config change yate-config repo fix yate deploy key fix yate-config not pulling
29 lines
602 B
Nix
29 lines
602 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
environment.systemPackages = [
|
|
pkgs.yate
|
|
pkgs.git
|
|
pkgs.tcpdump
|
|
pkgs.tmux
|
|
];
|
|
|
|
# Just disable it for now.
|
|
networking.firewall.enable = false;
|
|
|
|
users.users.yate = {
|
|
description = "yate service user";
|
|
group = "yate-config";
|
|
isNormalUser = true;
|
|
};
|
|
|
|
|
|
users.groups.yate-config = {};
|
|
users.groups.yate-config.members = [ "colmema-deploy" "chaos" "root" "yate"];
|
|
|
|
environment.etc.yate.user = "yate";
|
|
environment.etc.yate.group = "yate-config";
|
|
environment.etc.yate.mode = "symlink";
|
|
environment.etc.yate.source = "/var/lib/yate";
|
|
}
|