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"
}
},
"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": {
"inputs": {
"nixpkgs": [
@ -148,6 +164,7 @@
},
"root": {
"inputs": {
"gpu-screen-recorder-ui": "gpu-screen-recorder-ui",
"home-manager": "home-manager",
"moonlight": "moonlight",
"nixpkgs": "nixpkgs_2",

View file

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

View file

@ -2,6 +2,7 @@
config,
pkgs,
unstable,
gpu-screen-recorder-ui-pkgs,
inputs,
...
}:
@ -115,12 +116,7 @@
unstable.gpu-screen-recorder
unstable.gpu-screen-recorder-gtk
# # 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" ]; })
gpu-screen-recorder-ui-pkgs.gpu-screen-recorder-ui
# # You can also create simple shell scripts directly inside your
# # configuration. For example, this adds a command 'my-hello' to your
@ -129,7 +125,7 @@
# echo "Hello, ${config.home.username}!"
# '')
];
programs.moonlight-mod = {
enable = true;
# stable = {
@ -176,9 +172,9 @@
];
};
# === ssh ===
programs.ssh.enable = true;
programs.ssh.addKeysToAgent = "yes";
programs.ssh.matchBlocks = {
"*" = {
identityFile = "/home/buymymojo/.ssh/id_ed25519-mainpc";
@ -198,6 +194,7 @@
};
};
# === shells ===
programs.bash.enable = true;
programs.fish.enable = true;