From 5def42d8219cb3709b42cbfa1bb0ad77a109a948 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Sat, 18 Oct 2025 09:21:30 +0100 Subject: [PATCH] fix(flake): added global overlay for gamescope --- nix/flake.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nix/flake.nix b/nix/flake.nix index a3313df..40883ac 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -51,6 +51,24 @@ ... }: let + overlays = [ + ( + final: prev: + let + system = prev.stdenv.hostPlatform.system; + pkgs_gamescope = import inputs.nixpkgs-gamescope { + inherit system; + config = { + allow_unfree = true; + }; + }; + packageNix = "${inputs.nixpkgs-gamescope}/pkgs/by-name/ga/gamescope/package.nix"; + in + { + gamescope = pkgs_gamescope.callPackage packageNix { }; + } + ) + ]; utils = nix-meow.lib.setup { inherit (inputs) home-manager nixpkgs; inherit inputs; @@ -61,7 +79,7 @@ globalConfig = { allowUnfree = true; }; - globalOverlays = [ ]; + globalOverlays = overlays; defaultUser = "doloro"; }; inherit (utils) mkHost;