| flake.lock | ||
| flake.nix | ||
| README.md | ||
XP-Pen Linux Driver Nix Flake
A Nix flake for packaging the XP-Pen graphics tablet driver.
Version-Specific Configuration
This flake is specifically configured for XP-Pen driver version 3.4.9-240607. The installation script structure varies between versions, so if you need a different version, the flake will need to be updated to match the new driver's directory structure and file layout.
To use a different version, edit the version variable at the top of flake.nix:
version = "3.4.9-240607"; # version string
When changing versions, you may need to:
- Update the download URL if the XP-Pen server structure changes
- Update the hash value
- Verify the directory structure inside the tarball matches (especially the
XPPenLinuxX.X.X-XXXXXXdirectory name)
Prerequisites
You don't need to manually download the driver - this flake automatically fetches the official XP-Pen Linux driver from their servers.
Adding Hash Values
When you change the version, update the corresponding hash in the flake.nix:
Calculate the hash with:
nix hash file --type sha256 downloaded-driver.tar.gz
Then update the hash in flake.nix:
sha256 = "your-hash-here";
Currently configured for version 3.4.9-240607.
Usage
Build the package
NIXPKGS_ALLOW_UNFREE=1 nix build
The driver will be available at ./result/bin/xppen-tablet.
Run directly
NIXPKGS_ALLOW_UNFREE=1 nix run
Add to NixOS configuration
inputs = {
xppen-driver.url = "path:/path/to/this/flake";
};
outputs = { self, xppen-driver, ... }:
{
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
modules = [
xppen-driver.nixosModules.default
{
hardware.xppen = {
enable = true;
};
nixpkgs.config.allowUnfree = true;
users.users.your-username.extraGroups = [ "input" ];
}
];
};
};
Use with nix profile
NIXPKGS_ALLOW_UNFREE=1 nix profile install .
Features
- Automatic downloading from XP-Pen official servers
- Full driver installation including tablet support, pressure sensitivity, and configuration
- Desktop integration with application icons
- udev rules for device recognition
- NixOS module for easy system integration
- Wrapper script for proper Qt environment setup
License
XP-Pen driver is proprietary software. This flake is provided for packaging purposes only.