nixGL and firefox

This commit is contained in:
Motiejus Jakštys 2023-12-14 10:10:00 +02:00 committed by Motiejus Jakštys
parent 5204da7657
commit c13c45736b
3 changed files with 44 additions and 0 deletions

View File

@ -144,6 +144,29 @@
"type": "github" "type": "github"
} }
}, },
"nixgl": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1685908677,
"narHash": "sha256-E4zUPEUFyVWjVm45zICaHRpfGepfkE9Z2OECV9HXfA4=",
"owner": "guibou",
"repo": "nixGL",
"rev": "489d6b095ab9d289fe11af0219a9ff00fe87c7c5",
"type": "github"
},
"original": {
"owner": "guibou",
"repo": "nixGL",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1702453208, "lastModified": 1702453208,
@ -232,6 +255,7 @@
"gitignore": "gitignore", "gitignore": "gitignore",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixgl": "nixgl",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nur": "nur", "nur": "nur",

View File

@ -38,6 +38,14 @@
}; };
}; };
nixgl = {
url = "github:guibou/nixGL";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "flake-utils";
};
};
nix-index-database.url = "github:Mic92/nix-index-database"; nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
@ -74,6 +82,7 @@
pre-commit-hooks, pre-commit-hooks,
zigpkgs, zigpkgs,
nur, nur,
nixgl,
... ...
} @ inputs: let } @ inputs: let
myData = import ./data.nix; myData = import ./data.nix;
@ -296,6 +305,7 @@
inherit system; inherit system;
overlays = [ overlays = [
nur.overlay nur.overlay
nixgl.overlay
(_final: prev: { (_final: prev: {
zigpkgs = import zigpkgs { zigpkgs = import zigpkgs {
inherit (prev) pkgs; inherit (prev) pkgs;

View File

@ -21,12 +21,22 @@
zigpkgs."0.11.0" zigpkgs."0.11.0"
]) ])
(lib.mkIf hmOnly [ (lib.mkIf hmOnly [
pkgs.nixgl.nixGLIntel
ncdu ncdu
tokei tokei
scrcpy scrcpy
yt-dlp yt-dlp
vimv-rs vimv-rs
bandwhich
hyperfine hyperfine
(runCommand "ff" {} ''
mkdir -p $out/bin
{
echo '#!/bin/sh'
echo 'exec ${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ${firefox}/bin/firefox "$@"'
} > $out/bin/ff
chmod a+x $out/bin/ff
'')
]) ])
]; ];