restructure slippi into gaming subdir
This commit is contained in:
22
users/blake/dots/programs/_gaming/default.nix
Normal file
22
users/blake/dots/programs/_gaming/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.dots.gaming;
|
||||
in {
|
||||
imports = [
|
||||
./slippi
|
||||
];
|
||||
|
||||
options.dots.gaming = {
|
||||
enable = lib.mkEnableOption "enables all programs by default";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
dots = {
|
||||
slippi.enable = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
}
|
||||
38
users/blake/dots/programs/_gaming/slippi/default.nix
Normal file
38
users/blake/dots/programs/_gaming/slippi/default.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
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=";
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user