Compare commits
7 commits
afb6170927
...
b924128f7c
| Author | SHA1 | Date | |
|---|---|---|---|
| b924128f7c | |||
| 30a39ec7b0 | |||
| 3ee043ab13 | |||
| 1f281357aa | |||
| b20181aec5 | |||
| 63062475e2 | |||
| dcd6b194cb |
3 changed files with 99 additions and 24 deletions
|
|
@ -19,18 +19,22 @@ let
|
|||
# monochrome-light, monochrome-dark or colorful
|
||||
TrayIconAppearance = "monochrome-light";
|
||||
};
|
||||
Security.HideNotes = true;
|
||||
Security = {
|
||||
HideNotes = true;
|
||||
IconDownloadFallback = true;
|
||||
};
|
||||
SSHAgent.Enabled = true;
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
users.users.toast.packages = [ pkgs.keepassxc ];
|
||||
home-manager = {
|
||||
extraSpecialArgs = { kpxcSettings = kpxcSettings; };
|
||||
users.toast = { config, pkgs, kpxcSettings, ... }: {
|
||||
# No module for KeePassXC config :(
|
||||
home.file = {
|
||||
home = {
|
||||
packages = [ pkgs.keepassxc ];
|
||||
file = {
|
||||
".config/keepassxc/keepassxc.ini".text = kpxcSettings;
|
||||
# For some reason the autostart .desktop is not the same as the regular one
|
||||
".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
|
||||
|
|
@ -55,4 +59,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
./steam.nix
|
||||
./mangohud.nix
|
||||
./rpcs3.nix
|
||||
./retroarch.nix
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
heroic
|
||||
|
|
|
|||
69
roles/gaming/programs/retroarch.nix
Normal file
69
roles/gaming/programs/retroarch.nix
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
snes-roms = [
|
||||
# ActRaiser
|
||||
( pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/ActRaiser%20%28USA%29.zip";
|
||||
hash = "sha256-yxIL5Pqlp8xsx7wvNO1MlB8ffDjS0xpE+yrEfMj61As=";
|
||||
} )
|
||||
# Kirby Super Star
|
||||
( pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/Kirby%20Super%20Star%20%28USA%29.zip";
|
||||
hash = "sha256-NX5OjCthf4ZiAhamclRBRk8GiMjZX3JLeShm8sQdDfc=";
|
||||
} )
|
||||
# Super Mario Kart
|
||||
( pkgs.fetchzip {
|
||||
url = "https://myrient.erista.me/files/No-Intro/Nintendo%20-%20Super%20Nintendo%20Entertainment%20System/Super%20Mario%20Kart%20%28USA%29.zip";
|
||||
hash = "sha256-RLBxPBmBrXCuPdnWE07KamBNgGJ5IntQVUPeij+2HUI=";
|
||||
} )
|
||||
];
|
||||
in
|
||||
{
|
||||
home-manager.users.toast = {
|
||||
home = {
|
||||
packages = [(
|
||||
pkgs.retroarch.override {
|
||||
cores = with pkgs.libretro; [
|
||||
snes9x
|
||||
];
|
||||
settings = {
|
||||
video_driver = "vulkan";
|
||||
video_fullscreen = "true";
|
||||
};
|
||||
}
|
||||
)];
|
||||
file."Games/Roms/SNES/" = {
|
||||
onChange = ''
|
||||
${pkgs.retroarch}/bin/retroarch --scan "/home/toast/Games/Roms/SNES"
|
||||
'';
|
||||
source = pkgs.symlinkJoin {
|
||||
name = "snes-roms";
|
||||
paths = [ snes-roms ];
|
||||
};
|
||||
};
|
||||
};
|
||||
# Add a syncthing ignore file to the retroarch folder
|
||||
xdg.configFile."retroarch-stignore" = {
|
||||
target = "retroarch/.stignore";
|
||||
text = ''
|
||||
!saves
|
||||
!states
|
||||
!database
|
||||
!playlists
|
||||
|
||||
// Ignore everything except stuff above
|
||||
*
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Sync saves and some other stuff
|
||||
services.syncthing.settings.folders = {
|
||||
"retroarch" = {
|
||||
label = "RetroArch";
|
||||
id = "jxuou-2yjnu";
|
||||
devices = [ "steamdeck" "pc" ];
|
||||
path = "~/.config/retroarch";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue