pritunl
This commit is contained in:
1 parent
2aa4721c55
commit
056ca7813f
3 files changed
+29
No files matched your search
@@ -9,5 +9,6 @@
|
||||
./fonts.nix
|
||||
./ssh-server.nix
|
||||
./qemu.nix
|
||||
./pritunl
|
||||
];
|
||||
}
|
||||
@@ -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'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user