feat: slippi init config

This commit is contained in:
ooks-io 2024-02-16 01:15:44 +13:00
parent cbb415fd66
commit 170cfe7f3c
8 changed files with 149 additions and 3 deletions

View file

@ -10,6 +10,6 @@
#./utility -- still needs to be implemented
./wayland # -- almost done, need to implement eww
#./productivity -- still needs to be implemented
# ./gaming
./gaming
];
}

View file

@ -1 +1,15 @@
{ lib, ... }:
{
imports = [
./slippi
];
options.homeModules.desktop.gaming = {
slippi = {
enable = lib.mkEnableOption "Enable Slippi home module";
};
};
}

View file

@ -0,0 +1,18 @@
{ inputs, config, lib, ... }:
let
cfg = config.homeModules.desktop.gaming.slippi;
in
{
imports = [
inputs.ssbm-nix.homeManagerModule
];
config = lib.mkIf cfg.enable {
ssbm = {
slippi-launcher.enable = true;
};
};
}

View file

@ -26,6 +26,9 @@ in
hyprland = {
enable = lib.mkEnableOption "Enable the hyprland profile";
};
gaming = {
enable = lib.mkEnableOption "Enable the gaming profile";
};
};
};

View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
let
cfg = config.profiles.gaming;
in
{
imports = [
../../modules
];
config = lib.mkIf cfg.enable {
homeModules.desktop = {
gaming = {
slippi.enable = true;
};
};
};
}

View file

@ -5,7 +5,7 @@
../../../profile
];
activeProfiles = ["base" "hyprland"];
activeProfiles = ["base" "hyprland" "gaming"];
home.sessionVariables.HN = "ooksdesk";