refactor(flake-parts): initial flake-parts configuration

This commit is contained in:
ooks-io 2024-05-13 22:50:56 +12:00
parent 8f67be9e68
commit 5603001d65
230 changed files with 380 additions and 717 deletions

View file

@ -1,16 +0,0 @@
{ lib, ... }:
{
imports = [
./factorio
./lutris
];
options.homeModules.desktop.gaming = {
factorio = {
enable = lib.mkEnableOption "Enable factorio home module";
};
};
}

View file

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

View file

@ -1,14 +0,0 @@
{ 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 = [ pkgs.lutris ];
};
}