mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Various fixes for gaming
This commit is contained in:
parent
2eea633dc4
commit
467b45963a
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ virt-manager virtualbox ];
|
environment.systemPackages = with pkgs; [ virt-manager virtualbox distrobox ];
|
||||||
virtualisation.libvirtd = {
|
virtualisation.libvirtd = {
|
||||||
allowedBridges = [
|
allowedBridges = [
|
||||||
"nm-bridge"
|
"nm-bridge"
|
||||||
|
|
|
@ -20,6 +20,16 @@ in
|
||||||
qjoypad
|
qjoypad
|
||||||
superTux
|
superTux
|
||||||
superTuxKart
|
superTuxKart
|
||||||
|
|
||||||
|
# I installed these in distrobox
|
||||||
|
# and exported using distrobox-export
|
||||||
|
(pkgs.makeDesktopItem {
|
||||||
|
name = "pokefinder";
|
||||||
|
desktopName = "PokeFinder";
|
||||||
|
exec = "/home/emmet/.local/bin/pokefinder";
|
||||||
|
terminal = false;
|
||||||
|
type = "Application";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
|
32
user/pkgs/pokefinder.nix
Normal file
32
user/pkgs/pokefinder.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
# THIS DOESN'T WORK YET!!!
|
||||||
|
# I'M NOT SMART ENOUGH TO FIGURE THIS OUT XD
|
||||||
|
{ lib, stdenv, fetchgit, pkgs, ... }:
|
||||||
|
|
||||||
|
let name = "pokefinder";
|
||||||
|
version = "4.1.2";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit name version;
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/Admiral-Fish/${name}";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-ps8F6IcbCNybrZ02tbLNyB3YEvKlcYgCpv5Em7Riv+Q=";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = with pkgs; [ qt6.full qt6.qttools ];
|
||||||
|
nativeBuildInputs = with pkgs; [ python3 pkgs.cmake qt6.wrapQtAppsHook ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DCMAKE_BUILD_TYPE=RELEASE"
|
||||||
|
"-DCMAKE_PREFIX_PATH=${pkgs.qt6.full}"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/Admiral-Fish/PokeFinder";
|
||||||
|
description = "Cross platform Pokémon RNG tool";
|
||||||
|
license = lib.licenses.gpl3;
|
||||||
|
maintainers = [];
|
||||||
|
};
|
||||||
|
}
|
|
@ -8,13 +8,11 @@ in
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
owner = "phoneybadger";
|
owner = "phoneybadger";
|
||||||
repo = "pokemon-colorscripts";
|
repo = name;
|
||||||
rev = "0483c85b93362637bdd0632056ff986c07f30868";
|
rev = "0483c85b93362637bdd0632056ff986c07f30868";
|
||||||
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
|
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
phases = "installPhase";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out $out/bin $out/opt
|
mkdir -p $out $out/bin $out/opt
|
||||||
cp -rf $src/colorscripts $out/opt
|
cp -rf $src/colorscripts $out/opt
|
||||||
|
@ -24,7 +22,7 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts";
|
homepage = "https://github.com/Admiral-Fish/PokeFinder";
|
||||||
description = "CLI utility to print out images of pokemon to terminal";
|
description = "CLI utility to print out images of pokemon to terminal";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [];
|
maintainers = [];
|
||||||
|
|
|
@ -188,6 +188,10 @@
|
||||||
windowrulev2 = workspace special silent,$pavucontrol
|
windowrulev2 = workspace special silent,$pavucontrol
|
||||||
windowrulev2 = opacity 0.80,$pavucontrol
|
windowrulev2 = opacity 0.80,$pavucontrol
|
||||||
|
|
||||||
|
windowrulev2 = float,title:^(Kdenlive)$
|
||||||
|
|
||||||
|
windowrulev2 = float,class:^(pokefinder)$
|
||||||
|
|
||||||
windowrulev2 = opacity 0.85,$gearyscratchpad
|
windowrulev2 = opacity 0.85,$gearyscratchpad
|
||||||
windowrulev2 = opacity 0.80,title:ORUI
|
windowrulev2 = opacity 0.80,title:ORUI
|
||||||
windowrulev2 = opacity 0.80,title:Heimdall
|
windowrulev2 = opacity 0.80,title:Heimdall
|
||||||
|
|
5
user/wm/hyprland/hyprprofiles/profiles/Gaming/start-hook.sh
Executable file
5
user/wm/hyprland/hyprprofiles/profiles/Gaming/start-hook.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
hyprctl keyword unbind SUPER,S;
|
||||||
|
hyprctl keyword bind SUPER,S,exec,container-open Gaming;
|
||||||
|
emacsclient --eval '(org-roam-switch-db "Producer.p\/Rinias.p" t)'
|
Loading…
Reference in a new issue