init: public

This commit is contained in:
2025-04-13 15:09:14 +08:00
parent 5995c2050b
commit 50247d94e8
253 changed files with 12964 additions and 567 deletions

View File

@@ -0,0 +1,16 @@
{ config, lib, ... }:
lib.my.makeSwitch {
inherit config;
optionName = "all desktop gaming things";
optionPath = [
"desktop"
"gaming"
"all"
];
config' = {
my.desktop.gaming = {
minecraft.enable = true;
steam.enable = true;
};
};
}

View File

@@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./all.nix
./minecraft.nix
./steam.nix
];
}

View File

@@ -0,0 +1,27 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "minecraft";
optionPath = [
"desktop"
"gaming"
"minecraft"
];
config' = {
my.home.home.packages = with pkgs; [
hmcl
openjdk21
];
my.persist.homeDirs = [
".minecraft"
".local/share/hmcl"
];
};
}

View File

@@ -0,0 +1,24 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "steam";
optionPath = [
"desktop"
"gaming"
"steam"
];
config' = {
programs.steam = {
enable = true;
package = pkgs.steam;
extraPackages = with pkgs; [
gamescope
];
};
};
}