Install nixGL to support running graphical programs on non-nixos.

This commit is contained in:
Tom Alexander
2025-02-13 17:57:33 -05:00
parent 197b8fcced
commit fea86b00b4
3 changed files with 78 additions and 24 deletions

View File

@@ -3,7 +3,8 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# nixgl.url = "github:nix-community/nixGL";
nixgl.url = "github:nix-community/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@@ -12,20 +13,29 @@
outputs =
{
nixpkgs,
# nixgl,
nixgl,
home-manager,
...
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ];
};
in
# pkgs = nixpkgs.legacyPackages.${system};
{
defaultPackage.${system} = home-manager.defaultPackage.${system};
homeConfigurations."deck" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
extraSpecialArgs = { inherit nixgl; };
modules = [
./home.nix
{ nixpkgs.overlays = [ nixgl.overlay ]; }
];
};
};