Reorganization
This commit is contained in:
1 parent
592f5dc0ef
commit
8e0e511335
15 files changed
+43
-11
No files matched your search
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./emulators/ryujinx.nix
|
||||
./launchers/modrinth.nix
|
||||
./launchers/steam.nix
|
||||
];
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user