Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 22efa99f5f | |||
| 84c49405b6 | |||
| b4f9db9a67 |
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": 1752054764,
|
||||
"narHash": "sha256-Ob/HuUhANoDs+nvYqyTKrkcPXf4ZgXoqMTQoCK0RFgQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixGL",
|
||||
"rev": "a8e1ce7d49a149ed70df676785b07f63288f53c5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"ref": "main",
|
||||
"repo": "nixGL",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1752644555,
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -28,6 +28,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