Compare commits
2 commits
fd3f8f0b03
...
3171184c74
Author | SHA1 | Date | |
---|---|---|---|
3171184c74 | |||
8a8b91dee9 |
4 changed files with 33 additions and 15 deletions
|
@ -41,6 +41,7 @@
|
||||||
aseprite
|
aseprite
|
||||||
cloc
|
cloc
|
||||||
viu
|
viu
|
||||||
|
qbittorrent
|
||||||
];
|
];
|
||||||
|
|
||||||
chuj = {
|
chuj = {
|
||||||
|
@ -116,6 +117,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
keys = {
|
keys = {
|
||||||
"git@github.com".file = "github";
|
"git@github.com".file = "github";
|
||||||
|
"git@codeberg.org".file = "codeberg";
|
||||||
"forgejo@git.jacekpoz.pl".file = "jacekgit";
|
"forgejo@git.jacekpoz.pl".file = "jacekgit";
|
||||||
"krizej@192.168.1.12".file = "rpi";
|
"krizej@192.168.1.12".file = "rpi";
|
||||||
"discord@zasadzka.pl" = {
|
"discord@zasadzka.pl" = {
|
||||||
|
@ -134,10 +136,13 @@
|
||||||
gaming = {
|
gaming = {
|
||||||
enable = true;
|
enable = true;
|
||||||
quake = true;
|
quake = true;
|
||||||
homm3 = true;
|
|
||||||
dosbox = true;
|
dosbox = true;
|
||||||
ror2 = true;
|
ror2 = true;
|
||||||
steam = true;
|
steam = true;
|
||||||
|
scripts = [
|
||||||
|
{ name = "homm3"; exe = "HD_Launcher.exe"; }
|
||||||
|
{ name = "gtasa"; exe = "gta_sa.exe"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,15 +1,22 @@
|
||||||
{ lib, pkgs, config, ...}: let
|
{ lib, pkgs, config, ...}: let
|
||||||
inherit (lib) mkIf mkEnableOption mkOption types optionals;
|
inherit (lib) mkIf mkEnableOption mkOption types optionals forEach;
|
||||||
cfg = config.chuj.stuff.gaming;
|
cfg = config.chuj.stuff.gaming;
|
||||||
user = config.chuj.system.user;
|
user = config.chuj.system.user;
|
||||||
in {
|
in {
|
||||||
options.chuj.stuff.gaming = {
|
options.chuj.stuff.gaming = {
|
||||||
enable = mkEnableOption "gaming";
|
enable = mkEnableOption "gaming";
|
||||||
quake = mkEnableOption "quake";
|
quake = mkEnableOption "quake";
|
||||||
homm3 = mkEnableOption "homm3";
|
|
||||||
dosbox = mkEnableOption "dosbox";
|
dosbox = mkEnableOption "dosbox";
|
||||||
ror2 = mkEnableOption "ror2";
|
ror2 = mkEnableOption "ror2";
|
||||||
steam = mkEnableOption "steam";
|
steam = mkEnableOption "steam";
|
||||||
|
scripts = mkOption {
|
||||||
|
type = types.listOf (types.submodule {
|
||||||
|
options = {
|
||||||
|
name = mkOption { type = types.str; };
|
||||||
|
exe = mkOption { type = types.str; };
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
@ -18,17 +25,16 @@ in {
|
||||||
home-manager.users.${user}.home.packages = with pkgs; ([
|
home-manager.users.${user}.home.packages = with pkgs; ([
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
winetricks
|
winetricks
|
||||||
]
|
protontricks
|
||||||
|
] ++ forEach cfg.scripts (s:
|
||||||
|
(pkgs.writeShellScriptBin s.name ''
|
||||||
|
cd ~/games/${s.name}
|
||||||
|
wine ${s.exe}
|
||||||
|
'')
|
||||||
|
)
|
||||||
++ optionals cfg.dosbox [ dosbox-staging ]
|
++ optionals cfg.dosbox [ dosbox-staging ]
|
||||||
++ optionals cfg.ror2 [ r2modman ]
|
++ optionals cfg.ror2 [ r2modman ]
|
||||||
++ optionals cfg.quake [ vkquake ericw-tools-latest trenchbroom fteqcc gmqcc ]
|
++ optionals cfg.quake [ vkquake ericw-tools-latest trenchbroom fteqcc gmqcc ]);
|
||||||
++ optionals cfg.homm3 [
|
|
||||||
# todo download it from rpi maybe or something
|
|
||||||
(pkgs.writeShellScriptBin "homm3" ''
|
|
||||||
cd ~/games/homm3
|
|
||||||
wine HD_Launcher.exe
|
|
||||||
'')
|
|
||||||
]);
|
|
||||||
|
|
||||||
# Trenchbroom
|
# Trenchbroom
|
||||||
nixpkgs.config.permittedInsecurePackages = optionals cfg.quake [
|
nixpkgs.config.permittedInsecurePackages = optionals cfg.quake [
|
||||||
|
|
|
@ -86,8 +86,8 @@ in {
|
||||||
++ optionals config.chuj.stuff.dunst.enable [{ command = "dunst &"; notification = false; }]
|
++ optionals config.chuj.stuff.dunst.enable [{ command = "dunst &"; notification = false; }]
|
||||||
++ optionals config.chuj.stuff.flameshot.enable [{ command = "flameshot &"; notification = false; }]
|
++ optionals config.chuj.stuff.flameshot.enable [{ command = "flameshot &"; notification = false; }]
|
||||||
++ optionals cfg.communicators.autostart [
|
++ optionals cfg.communicators.autostart [
|
||||||
{ command = "i3-msg \"workspace ${cfg.communicators.workspace}; append_layout ${../../files/i3_communicators_layout.json}\""; notification = false; }
|
# { command = "i3-msg \"workspace ${cfg.communicators.workspace}; append_layout ${../../files/i3_communicators_layout.json}\""; notification = false; }
|
||||||
{ command = "discord &"; notification = false; }
|
# { command = "discord &"; notification = false; }
|
||||||
{ command = "element-desktop &"; notification = false; }
|
{ command = "element-desktop &"; notification = false; }
|
||||||
]
|
]
|
||||||
++ optionals config.chuj.stuff.mpd.enable [
|
++ optionals config.chuj.stuff.mpd.enable [
|
||||||
|
|
|
@ -19,5 +19,12 @@
|
||||||
make -j6 DO_USERDIRS=1 prefix=$out bindir=$out/bin
|
make -j6 DO_USERDIRS=1 prefix=$out bindir=$out/bin
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
protontricks = prevPkgs.protontricks.overrideAttrs (prev: {
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
inherit (prev.src) owner repo;
|
||||||
|
rev = "f7b1fa33b0438dbd72f7222703f8442e40edc510";
|
||||||
|
sha256 = "sha256-t794WEMJx/JNX3gTMHfgquFWB7yXkleW07+QURm1NPM=";
|
||||||
|
};
|
||||||
|
});
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue