mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 17:24:35 +05:30
Setup gamehub and fixed uid
This commit is contained in:
parent
a97efbc391
commit
02a6aabdf8
|
@ -142,6 +142,7 @@
|
||||||
description = "Emmet";
|
description = "Emmet";
|
||||||
extraGroups = [ "networkmanager" "wheel" ];
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
|
uid = 1000;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
|
@ -178,6 +179,7 @@
|
||||||
font-awesome
|
font-awesome
|
||||||
ubuntu_font_family
|
ubuntu_font_family
|
||||||
terminus_font
|
terminus_font
|
||||||
|
gamemode
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
@ -211,6 +213,9 @@
|
||||||
# OpenGL
|
# OpenGL
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
|
# Feral GameMode
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
|
@ -1,21 +1,32 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
{
|
myRetroarch =
|
||||||
home.packages = with pkgs; [
|
(pkgs.retroarch.override {
|
||||||
# Games
|
cores = with pkgs.libretro; [
|
||||||
#TODO need flatpak steam
|
|
||||||
gamehub
|
|
||||||
(retroarch.override {
|
|
||||||
cores = with libretro; [
|
|
||||||
mgba
|
mgba
|
||||||
desmume
|
desmume
|
||||||
dolphin
|
dolphin
|
||||||
citra
|
citra
|
||||||
genesis-plus-gx
|
genesis-plus-gx
|
||||||
];
|
];
|
||||||
})
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# Games
|
||||||
|
#TODO need flatpak steam
|
||||||
|
gamehub
|
||||||
|
myRetroarch
|
||||||
airshipper
|
airshipper
|
||||||
qjoypad
|
qjoypad
|
||||||
# TODO need flatpak minecraft
|
# TODO need flatpak minecraft
|
||||||
];
|
];
|
||||||
|
# The following 2 declarations allow retroarch to be imported into gamehub
|
||||||
|
# Set retroarch core directory to ~/.local/bin/libretro
|
||||||
|
# and retroarch core info directory to ~/.local/share/libretro/info
|
||||||
|
home.file.".local/bin/libretro".source = "${myRetroarch}/lib/retroarch/cores";
|
||||||
|
home.file.".local/share/libretro/info".source = fetchTarball {
|
||||||
|
url = "https://github.com/libretro/libretro-core-info/archive/refs/tags/v1.15.0.tar.gz";
|
||||||
|
sha256 = "004kgbsgbk7hn1v01jg3vj4b6dfb2cp3kcp5hgjyl030wqg1r22q";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue