Skip to content

Conversation

@wojcik91
Copy link
Contributor

@wojcik91 wojcik91 commented Jan 7, 2026

Fix missing runtime dependencies, bundle resources (icons etc), get the NixOS module to actually work.

The NixOS module is still a bit WIP. I'm currently using it but there are apparently still some issues with resolvconf (used by the background service to configure DNS if provided) in some setups. It works for me with networking.networkmanager.enable = true; but apparently services.resolved has to be disabled.

To use the module you can add this repo to your flake inputs:

# Defguard desktop client
    defguard-client = {
      # can't use default github schema due to https://github.com/NixOS/nix/issues/13571
      url = "git+https://github.com/DefGuard/client?ref=refs/tags/v1.6.2-nixtest3";
      flake = true;
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.flake-utils.follows = "flake-utils";
    };

And then add this somewhere in your NixOS config:

  imports = [
    inputs.defguard-client.nixosModules.default
  ];

  # add user to defguard group for socket access
  users.users."yourUserName".extraGroups = ["defguard"];

  programs.defguard-client.enable = true;

Huge thanks to @kristofvandam for contributing a fix for missing runtime dependencies: #741

Closes #728

@wojcik91 wojcik91 requested a review from j-chmielewski January 7, 2026 12:38
@wojcik91 wojcik91 self-assigned this Jan 7, 2026
@wojcik91 wojcik91 mentioned this pull request Jan 8, 2026
@wojcik91 wojcik91 marked this pull request as ready for review January 8, 2026 09:06
@wojcik91 wojcik91 merged commit 81fb516 into main Jan 8, 2026
23 of 24 checks passed
@wojcik91 wojcik91 deleted the fix_nix_package_deps branch January 8, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing 1.6.1, defguard-client fails to start on NixOS

3 participants