restructure slippi into gaming subdir

This commit is contained in:
2025-11-07 15:35:45 -06:00
parent 4e0cc2a322
commit 6bfea61ffe
3 changed files with 4 additions and 43 deletions

View File

@@ -27,7 +27,8 @@ git status --short
read -rp "commit message: " commit_msg read -rp "commit message: " commit_msg
echo "rebuilding nixos with flake.nix..." echo "rebuilding nixos with flake.nix..."
#if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then #if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
if ! nh os switch 2>&1 | tee "$logfile"; then #if ! nh os switch 2>&1 | tee "$logfile"; then
if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
echo "rebuild failed; exited with no commit" echo "rebuild failed; exited with no commit"
exit 1 exit 1
fi fi

View File

@@ -9,6 +9,7 @@ in {
imports = [ imports = [
./_media-tools ./_media-tools
./_browsers ./_browsers
./_gaming
./thunderbird ./thunderbird
./libreoffice ./libreoffice
@@ -18,7 +19,6 @@ in {
./zathura ./zathura
./discord ./discord
./slippi
]; ];
options.dots.programs = { options.dots.programs = {
@@ -29,6 +29,7 @@ in {
dots = { dots = {
media-tools.enable = lib.mkDefault true; media-tools.enable = lib.mkDefault true;
browsers.enable = lib.mkDefault true; browsers.enable = lib.mkDefault true;
gaming.enable = lib.mkDefault true;
thunderbird.enable = lib.mkDefault true; thunderbird.enable = lib.mkDefault true;
libreoffice.enable = lib.mkDefault true; libreoffice.enable = lib.mkDefault true;
@@ -37,9 +38,6 @@ in {
bitwarden.enable = lib.mkDefault true; bitwarden.enable = lib.mkDefault true;
discord.enable = lib.mkDefault true; discord.enable = lib.mkDefault true;
zathura.enable = lib.mkDefault true; zathura.enable = lib.mkDefault true;
slippi.enable = lib.mkDefault true;
}; };
}; };
} }

View File

@@ -1,38 +0,0 @@
{
pkgs,
lib,
inputs,
config,
...
}: let
program = "slippi";
cfg = config.dots.${program};
home_dir = config.home.homeDirectory;
in {
options.dots.${program} = {
enable = lib.mkEnableOption "enables ${program}";
};
imports = [
inputs.slippi.homeManagerModules.default
];
config = lib.mkIf cfg.enable {
# enable with home-manager
# this is very nice thanks to: https://github.com/lytedev/slippi-nix
# that link is where the options can be found
slippi-launcher = {
enable = true;
isoPath = "${home_dir}/documents/melee/isos/Super Smash Bros. Melee (USA) (En,Ja) (v1.02).iso";
launchMeleeOnPlay = false;
useMonthlySubfolders = true; # for replays
# in the event this is out of date, versions can be specificed here
#netplayVersion = "2.11.10";
#netplayHash = "sha256-d1iawMsMwFElUqFmwWAD9rNsDdQr2LKscU8xuJPvxYg=";
#playbackVersion = "2.11.10";
#playbackHash = "sha256-d1iawMsMwFElUqFmwWAD9rNsDdQr2LKscU8xuJPvxYg=";
};
};
}