refactor: inputs/ --> {sys,home}/

This commit is contained in:
ooks-io 2024-05-26 14:57:35 +12:00
parent 8f22a24963
commit f77c627980
225 changed files with 77 additions and 88 deletions

View file

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

View file

@ -0,0 +1,17 @@
{ lib, ... }:
{
imports = [
./factorio
./lutris
./bottles
];
options.homeModules.desktop.gaming = {
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

@ -0,0 +1,24 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.homeModules.desktop.gaming.lutris;
in
{
options.homeModules.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
config = mkIf cfg.enable {
home.packages = with pkgs; [
(lutris.override {
extraPkgs = p: [
p.pixman
p.libjpeg
p.gnome.zenity
p.gamescope
];
})
winetricks
];
};
}