Reorganization

This commit is contained in:
Jan-Bulthuis committed 2025-01-26 13:16:06 +01:00
1 parent 592f5dc0ef
commit 8e0e511335
15 files changed
+43 -11

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./emulators/ryujinx.nix
./launchers/modrinth.nix
./launchers/steam.nix
];
}
+22
View File
@@ -0,0 +1,22 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.ryujinx;
in
{
options.modules.modrinth = {
enable = mkEnableOption "ryujinx";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
ryujinx
];
};
}
@@ -0,0 +1,27 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.modules.modrinth;
in
{
options.modules.modrinth = {
enable = mkEnableOption "modrinth";
};
config = mkIf cfg.enable {
modules.unfree.allowedPackages = [
"modrinth-app"
"modrinth-app-unwrapped"
];
home.packages = with pkgs; [
modrinth-app
];
};
}
+15
View File
@@ -0,0 +1,15 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.modules.steam = {
enable = mkEnableOption "steam";
};
# The rest of the configuration is in a systemwide module
}