refactor(gaming): remove slippi and nix-gaming flake

This commit is contained in:
ooks-io 2024-04-01 12:41:27 +13:00
parent 111ff878c2
commit b81fe9488e
7 changed files with 18 additions and 24 deletions

View file

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

View file

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

View file

@ -0,0 +1,11 @@
{ lib, config, pkgs, ... }:
let
cfg=config.homeModules.desktop.gaming.factorio;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ factorio ];
};
}

View file

@ -1,18 +0,0 @@
{ 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

@ -12,6 +12,7 @@ in
./hyprland
#./creative
./productivity
./gaming
];
options = {

View file

@ -11,7 +11,7 @@ in
config = lib.mkIf cfg.enable {
homeModules.desktop = {
gaming = {
slippi.enable = true;
factorio.enable = true;
};
};
};

View file

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