nixgl flake input attempt
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
_1password-shell-plugins.url = "github:1Password/shell-plugins";
|
_1password-shell-plugins.url = "github:1Password/shell-plugins";
|
||||||
|
nixgl = {
|
||||||
|
url = "github:nix-community/nixGL";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, ... }@inputs:
|
outputs = { self, nixpkgs, ... }@inputs:
|
||||||
@@ -77,7 +81,7 @@
|
|||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; nixgl = inputs.nixgl; };
|
||||||
users = {
|
users = {
|
||||||
${config.user} = {
|
${config.user} = {
|
||||||
imports = mkhomeManagerModules config;
|
imports = mkhomeManagerModules config;
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, nixgl, ... }:
|
||||||
{
|
{
|
||||||
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical) {
|
home.sessionVariables = lib.mkIf (config.enableShell && config.graphical) {
|
||||||
TERMINAL = "ghostty";
|
TERMINAL = "ghostty";
|
||||||
};
|
};
|
||||||
|
|
||||||
# https://github.com/nix-community/nixGL?tab=readme-ov-file#nix-channel-recommended
|
# nixGL is now provided as a flake input
|
||||||
# nix-channel --add https://github.com/nix-community/nixGL/archive/main.tar.gz nixgl && nix-channel --update
|
nixGL.packages = nixgl.packages.${pkgs.system};
|
||||||
nixGL.packages = import <nixgl> { inherit pkgs; };
|
|
||||||
nixGL.defaultWrapper = "mesa";
|
nixGL.defaultWrapper = "mesa";
|
||||||
nixGL.installScripts = [ "mesa" ];
|
nixGL.installScripts = [ "mesa" ];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user