This commit is contained in:
ari committed 2025-03-13 09:58:22 -04:00
1 parent 2aa4721c55
commit 056ca7813f
3 files changed
+29

No files matched your search

+1
View File
@@ -9,5 +9,6 @@
./fonts.nix
./ssh-server.nix
./qemu.nix
./pritunl
];
}
+26
View File
@@ -0,0 +1,26 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.common.pritunl;
in
{
options = {
skyg.common.pritunl = {
enable = lib.mkEnableOption "Enable Pritunl";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
pritunl-client
];
systemd.services.pritunl-client-service = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
description = "Starts the pritunl client service";
serviceConfig = {
Type = "simple";
User = "root";
ExecStart = ''${pkgs.pritunl-client}/bin/pritunl-client-service'';
};
};
};
}