1 { config, pkgs, lib, ... }:
3 cfg = config.services.netclient;
6 meta.maintainers = with lib.maintainers; [ wexder ];
8 options.services.netclient = {
9 enable = lib.mkEnableOption "Netclient Daemon";
10 package = lib.mkPackageOption pkgs "netclient" { };
13 config = lib.mkIf cfg.enable {
14 environment.systemPackages = [ cfg.package ];
15 systemd.services.netclient = {
16 wantedBy = [ "multi-user.target" ];
17 after = [ "network-online.target" ];
18 description = "Netclient Daemon";
21 ExecStart = "${lib.getExe cfg.package} daemon";
22 Restart = "on-failure";