Add gpu-screen-recorder-ui (Not merged into main nixpkgs yet)

This commit is contained in:
BuyMyMojo 2025-03-26 15:11:46 +11:00
parent 8a343bdd1d
commit 500c26f0b7
3 changed files with 34 additions and 8 deletions

View file

@ -36,6 +36,22 @@
"type": "github" "type": "github"
} }
}, },
"gpu-screen-recorder-ui": {
"locked": {
"lastModified": 1741023597,
"narHash": "sha256-09HLLCoC6L8OEjy0mvA7F6agriHQQOGXYsOisE0b4g8=",
"owner": "js6pak",
"repo": "nixpkgs",
"rev": "5c405e5de49ffe89bcdc5b43813b31383eef6f1c",
"type": "github"
},
"original": {
"owner": "js6pak",
"ref": "5c405e5de49ffe89bcdc5b43813b31383eef6f1c",
"repo": "nixpkgs",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -148,6 +164,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"gpu-screen-recorder-ui": "gpu-screen-recorder-ui",
"home-manager": "home-manager", "home-manager": "home-manager",
"moonlight": "moonlight", "moonlight": "moonlight",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",

View file

@ -15,6 +15,11 @@
url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly. url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
inputs.nixpkgs.follows = "nixpkgs-unstable"; inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
gpu-screen-recorder-ui = {
url = "github:js6pak/nixpkgs?ref=5c405e5de49ffe89bcdc5b43813b31383eef6f1c";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
}; };
outputs = outputs =
@ -22,6 +27,7 @@
nixpkgs, nixpkgs,
home-manager, home-manager,
nixpkgs-unstable, nixpkgs-unstable,
gpu-screen-recorder-ui,
... ...
}@inputs: }@inputs:
let let
@ -35,11 +41,17 @@
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
gpu-screen-recorder-ui-pkgs = import gpu-screen-recorder-ui {
inherit system;
config.allowUnfree = true;
};
in in
{ {
homeConfigurations."buymymojo" = home-manager.lib.homeManagerConfiguration { homeConfigurations."buymymojo" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = { extraSpecialArgs = {
inherit gpu-screen-recorder-ui-pkgs;
inherit unstable; inherit unstable;
inherit inputs; inherit inputs;
}; };

View file

@ -2,6 +2,7 @@
config, config,
pkgs, pkgs,
unstable, unstable,
gpu-screen-recorder-ui-pkgs,
inputs, inputs,
... ...
}: }:
@ -115,12 +116,7 @@
unstable.gpu-screen-recorder unstable.gpu-screen-recorder
unstable.gpu-screen-recorder-gtk unstable.gpu-screen-recorder-gtk
gpu-screen-recorder-ui-pkgs.gpu-screen-recorder-ui
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
# # fonts?
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
# # You can also create simple shell scripts directly inside your # # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your # # configuration. For example, this adds a command 'my-hello' to your
@ -176,9 +172,9 @@
]; ];
}; };
# === ssh ===
programs.ssh.enable = true; programs.ssh.enable = true;
programs.ssh.addKeysToAgent = "yes"; programs.ssh.addKeysToAgent = "yes";
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
"*" = { "*" = {
identityFile = "/home/buymymojo/.ssh/id_ed25519-mainpc"; identityFile = "/home/buymymojo/.ssh/id_ed25519-mainpc";
@ -198,6 +194,7 @@
}; };
}; };
# === shells ===
programs.bash.enable = true; programs.bash.enable = true;
programs.fish.enable = true; programs.fish.enable = true;