wip(home): refactor home modules *WILL NOT BUILD*

This commit is contained in:
ooks-io 2024-06-04 21:19:35 +12:00
parent 2033810429
commit 6a591ecbf7
115 changed files with 1028 additions and 791 deletions

View file

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
cfg = config.ooknet.gaming.bottles;
in
{
config = mkIf cfg.enable {
home.packages = with pkgs; [
bottles
];
};
}

View file

@ -1,17 +0,0 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.ooknet.desktop.gaming.bottles;
in
{
options.ooknet.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
config = mkIf cfg.enable {
home.packages = with pkgs; [
bottles
];
};
}

View file

@ -1,17 +1,7 @@
{ lib, ... }:
{
imports = [
./factorio
./lutris
./bottles
./factorio.nix
./lutris.nix
./bottles.nix
];
options.ooknet.desktop.gaming = {
factorio = {
enable = lib.mkEnableOption "Enable factorio home module";
};
};
}

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg=config.ooknet.desktop.gaming.factorio;
cfg = config.ooknet.gaming.factorio;
in
{

View file

@ -1,13 +1,11 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.ooknet.desktop.gaming.lutris;
inherit (lib) mkIf;
cfg = config.ooknet.gaming.lutris;
in
{
options.ooknet.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
config = mkIf cfg.enable {
home.packages = with pkgs; [
(lutris.override {