This commit is contained in:
alsaiduq-lab 2025-04-03 09:23:15 -06:00
parent 440506cabf
commit aecfcb0fa6
4 changed files with 50 additions and 23 deletions

View file

@ -1,4 +1,8 @@
{pkgs, ...}: {
{
pkgs,
rpcs3_latest,
...
}: {
imports = [
./modules/dunst.nix
./modules/fish.nix
@ -11,7 +15,7 @@
./modules/starship.nix
./modules/zellij.nix
./modules/ffmpeg.nix
./modules/emulators.nix
(import ./modules/emulators.nix {inherit pkgs rpcs3_latest;})
];
home.username = "cobray";

View file

@ -1,11 +1,8 @@
{pkgs, ...}: let
rpcs3_latest = pkgs.rpcs3.overrideAttrs (oldAttrs: {
src = builtins.fetchGit {
url = "https://github.com/RPCS3/rpcs3.git";
ref = "master";
};
});
in {
{
pkgs,
rpcs3_latest,
...
}: {
home.packages = with pkgs; [
mgba
desmume
@ -17,11 +14,11 @@ in {
retroarch
mednafen
joycond
# uses latest commit, but in case of errors (if there were any in the first place) to fallback to snapshot nix package in case it failed (even if not)
(
if (builtins.tryEval rpcs3_latest).success
then rpcs3_latest
else rpcs3
)
# uses latest commit, but in case of errors (if there were any in the first place) to fallback to snapshot nix package in case it failed (even if not)
];
}