Compare commits

...

7 commits

3 changed files with 99 additions and 24 deletions

View file

@ -19,39 +19,44 @@ let
# monochrome-light, monochrome-dark or colorful # monochrome-light, monochrome-dark or colorful
TrayIconAppearance = "monochrome-light"; TrayIconAppearance = "monochrome-light";
}; };
Security.HideNotes = true; Security = {
HideNotes = true;
IconDownloadFallback = true;
};
SSHAgent.Enabled = true; SSHAgent.Enabled = true;
}; };
in in
{ {
users.users.toast.packages = [ pkgs.keepassxc ];
home-manager = { home-manager = {
extraSpecialArgs = { kpxcSettings = kpxcSettings; }; extraSpecialArgs = { kpxcSettings = kpxcSettings; };
users.toast = { config, pkgs, kpxcSettings, ... }: { users.toast = { config, pkgs, kpxcSettings, ... }: {
# No module for KeePassXC config :( # No module for KeePassXC config :(
home.file = { home = {
".config/keepassxc/keepassxc.ini".text = kpxcSettings; packages = [ pkgs.keepassxc ];
# For some reason the autostart .desktop is not the same as the regular one file = {
".config/autostart/org.keepassxc.KeePassXC.desktop".text = '' ".config/keepassxc/keepassxc.ini".text = kpxcSettings;
[Desktop Entry] # For some reason the autostart .desktop is not the same as the regular one
Name=KeePassXC ".config/autostart/org.keepassxc.KeePassXC.desktop".text = ''
GenericName=Password Manager [Desktop Entry]
Exec=keepassxc Name=KeePassXC
TryExec=keepassxc GenericName=Password Manager
Icon=keepassxc Exec=keepassxc
StartupWMClass=keepassxc TryExec=keepassxc
StartupNotify=true Icon=keepassxc
Terminal=false StartupWMClass=keepassxc
Type=Application StartupNotify=true
Version=1.0 Terminal=false
Categories=Utility;Security;Qt; Type=Application
MimeType=application/x-keepass2; Version=1.0
X-GNOME-Autostart-enabled=true Categories=Utility;Security;Qt;
X-GNOME-Autostart-Delay=2 MimeType=application/x-keepass2;
X-KDE-autostart-after=panel X-GNOME-Autostart-enabled=true
X-LXQt-Need-Tray=true X-GNOME-Autostart-Delay=2
''; X-KDE-autostart-after=panel
X-LXQt-Need-Tray=true
'';
};
}; };
}; };
}; };

View file

@ -5,6 +5,7 @@
./steam.nix ./steam.nix
./mangohud.nix ./mangohud.nix
./rpcs3.nix ./rpcs3.nix
./retroarch.nix
]; ];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
heroic heroic

View 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";
};
};
}