1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 23:00:39 +02:00

feat: use updated gpu-screen-recorder by timschumi which allows root-capture

This commit is contained in:
oddlama 2024-07-05 01:37:41 +02:00
parent 7306bb2cf0
commit b4b21b37fa
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
6 changed files with 28 additions and 3 deletions

17
flake.lock generated
View file

@ -1331,6 +1331,22 @@
"type": "github"
}
},
"nixpkgs-gpu-screen-recorder": {
"locked": {
"lastModified": 1720133070,
"narHash": "sha256-fo/KKxICtGyQAyYwlvwxuCZSyGhoY4MPR55zf02Q104=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "032e70533b134ea30c0359886dcdec547134dbdd",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "032e70533b134ea30c0359886dcdec547134dbdd",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1717284937,
@ -1683,6 +1699,7 @@
"nixos-hardware": "nixos-hardware",
"nixos-nftables-firewall": "nixos-nftables-firewall",
"nixpkgs": "nixpkgs",
"nixpkgs-gpu-screen-recorder": "nixpkgs-gpu-screen-recorder",
"nixvim": "nixvim",
"pre-commit-hooks": "pre-commit-hooks_5",
"stylix": "stylix",

View file

@ -68,6 +68,7 @@
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-gpu-screen-recorder.url = "github:NixOS/nixpkgs/032e70533b134ea30c0359886dcdec547134dbdd";
nixvim = {
url = "github:nix-community/nixvim";

View file

@ -30,7 +30,7 @@
{
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays =
import ../pkgs/default.nix
(import ../pkgs/default.nix inputs)
++ [
inputs.nix-topology.overlays.default
inputs.nixos-extra-modules.overlays.default

View file

@ -25,7 +25,7 @@
inherit system;
config.allowUnfree = true;
overlays =
import ../pkgs/default.nix
(import ../pkgs/default.nix inputs)
++ [
inputs.nix-topology.overlays.default
inputs.nixos-extra-modules.overlays.default

View file

@ -1,4 +1,4 @@
[
inputs: [
(import ./caddy.nix)
(import ./scripts)
(_final: prev: {
@ -33,6 +33,8 @@
wrapProgram $out/bin/nvim --add-flags "--clean"
'';
});
gpu-screen-recorder = prev.callPackage "${inputs.nixpkgs-gpu-screen-recorder}/pkgs/applications/video/gpu-screen-recorder/default.nix" {};
gpu-screen-recorder-gtk = prev.callPackage "${inputs.nixpkgs-gpu-screen-recorder}/pkgs/applications/video/gpu-screen-recorder/gpu-screen-recorder-gtk.nix" {};
#pythonPackagesExtensions =
# prev.pythonPackagesExtensions
# ++ [

View file

@ -1,4 +1,5 @@
{
inputs,
config,
lib,
pkgs,
@ -65,4 +66,8 @@ in
# Autologin
services.getty.autologinUser = myuser;
# Allow screen recorder to access the framebuffer as root
imports = ["${inputs.nixpkgs-gpu-screen-recorder}/nixos/modules/programs/gpu-screen-recorder.nix"];
programs.gpu-screen-recorder.wrapCapabilities = true;
}