feat: add host-aligned NixOS module (#652)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Kevin Yueandgithub-actions[bot] authored and GitHub committed 2026-09-01 09:47:01 +08:00
1 parent 87f91e3c13
commit 8eb4d48887
5 files changed
+186 -28

No files matched your search

+7 -7
View File
@@ -240,16 +240,16 @@ This repository includes a flake for NixOS integration.
#### Installation Steps
Add the flake input and package to your `flake.nix`:
Add the flake input and NixOS module to your `flake.nix`:
The module builds the package with your NixOS configuration's `pkgs`, so the
GlobalProtect GUI and the system use the same Nixpkgs dependency versions.
```nix
{
inputs = {
# ... other inputs
globalprotect-openconnect = {
url = "github:yuezk/GlobalProtect-openconnect";
inputs.nixpkgs.follows = "nixpkgs";
};
globalprotect-openconnect.url = "github:yuezk/GlobalProtect-openconnect";
};
outputs = { self, nixpkgs, globalprotect-openconnect, ... }:
@@ -262,11 +262,11 @@ Add the flake input and package to your `flake.nix`:
modules = [
./configuration.nix
globalprotect-openconnect.nixosModules.default
{
services.ayatana-indicators.enable = true;
programs.globalprotect-openconnect.enable = true;
environment.systemPackages = [
globalprotect-openconnect.packages.${system}.default
nixpkgs.legacyPackages.${system}.gnomeExtensions.appindicator
];
}