Compare commits
3 commits
22efa99f5f
...
42a60797dd
| Author | SHA1 | Date | |
|---|---|---|---|
| 42a60797dd | |||
| b5f2b44e7e | |||
| 423bd827ae |
4 changed files with 58 additions and 0 deletions
25
flake.lock
generated
25
flake.lock
generated
|
|
@ -173,6 +173,30 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixgl": {
|
||||
"inputs": {
|
||||
"flake-utils": [
|
||||
"futils"
|
||||
],
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1713543440,
|
||||
"narHash": "sha256-lnzZQYG0+EXl/6NkGpyIz+FEOc/DSEG57AP1VsdeNrM=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixGL",
|
||||
"rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "main",
|
||||
"repo": "nixGL",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1743689281,
|
||||
|
|
@ -221,6 +245,7 @@
|
|||
"futils": "futils",
|
||||
"git-hooks": "git-hooks",
|
||||
"home-manager": "home-manager",
|
||||
"nixgl": "nixgl",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nur": "nur",
|
||||
"systems": "systems"
|
||||
|
|
|
|||
11
flake.nix
11
flake.nix
|
|
@ -43,6 +43,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
nixgl = {
|
||||
type = "github";
|
||||
owner = "nix-community";
|
||||
repo = "nixGL";
|
||||
ref = "main";
|
||||
inputs = {
|
||||
flake-utils.follows = "futils";
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
type = "github";
|
||||
owner = "NixOS";
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
./mail
|
||||
./mpv
|
||||
./nix
|
||||
./nix-gl
|
||||
./nix-index
|
||||
./nixpkgs
|
||||
./nm-applet
|
||||
|
|
|
|||
21
modules/home/nix-gl/default.nix
Normal file
21
modules/home/nix-gl/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, inputs, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.nix-gl;
|
||||
in
|
||||
{
|
||||
options.my.home.nix-gl = with lib; {
|
||||
enable = mkEnableOption "nixGL configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
nixGL = {
|
||||
inherit (inputs.nixgl) packages;
|
||||
|
||||
defaultWrapper = "mesa";
|
||||
|
||||
installScripts = [ "mesa" ];
|
||||
};
|
||||
}
|
||||
]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue