File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 222
222
./programs/gpaste.nix
223
223
./programs/gphoto2.nix
224
224
./programs/gpu-screen-recorder.nix
225
+ ./programs/gpu-screen-recorder-ui.nix
225
226
./programs/haguichi.nix
226
227
./programs/hamster.nix
227
228
./programs/htop.nix
Original file line number Diff line number Diff line change
1
+ {
2
+ config ,
3
+ lib ,
4
+ pkgs ,
5
+ ...
6
+ } :
7
+
8
+ let
9
+ cfg = config . programs . gpu-screen-recorder-ui ;
10
+ package = cfg . package . override {
11
+ inherit ( config . security ) wrapperDir ;
12
+ } ;
13
+ in
14
+ {
15
+ options = {
16
+ programs . gpu-screen-recorder-ui = {
17
+ package = lib . mkPackageOption pkgs "gpu-screen-recorder-ui" { } ;
18
+
19
+ enable = lib . mkOption {
20
+ type = lib . types . bool ;
21
+ default = false ;
22
+ description = ''
23
+ Whether to install gpu-screen-recorder-ui and generate setcap
24
+ wrappers for global hotkeys.
25
+ '' ;
26
+ } ;
27
+ } ;
28
+ } ;
29
+
30
+ config = lib . mkIf cfg . enable {
31
+ programs . gpu-screen-recorder . enable = lib . mkDefault true ;
32
+
33
+ environment . systemPackages = [ package ] ;
34
+
35
+ systemd . packages = [ package ] ;
36
+
37
+ security . wrappers . "gsr-global-hotkeys" = {
38
+ owner = "root" ;
39
+ group = "root" ;
40
+ capabilities = "cap_setuid+ep" ;
41
+ source = lib . getExe' package "gsr-global-hotkeys" ;
42
+ } ;
43
+ } ;
44
+
45
+ meta . maintainers = with lib . maintainers ; [ js6pak ] ;
46
+ }
You can’t perform that action at this time.
0 commit comments