feat: massive refactor

This commit is contained in:
2025-12-20 12:57:47 +08:00
parent f4c1b313ce
commit 454ad5885d
97 changed files with 1023 additions and 960 deletions

View File

@@ -23,25 +23,11 @@ let
} settings;
in
{
imports = [
(lib.my.makeHomePackageConfig {
inherit config pkgs;
packageName = "moonlight-qt";
packagePath = [ "moonlight-qt" ];
optionPath = [
"virt"
"moonlight"
];
extraConfig = {
my.persist.homeDirs = [
".config/Moonlight Game Streaming Project"
];
};
})
];
options.my.virt = {
enable = lib.mkEnableOption "virtualization";
moonlight = {
enable = lib.mkEnableOption "Moonlight";
};
looking-glass = {
enable = lib.mkEnableOption "looking-glass";
package = lib.mkPackageOption pkgs "looking-glass-client" { };
@@ -116,7 +102,7 @@ in
settings = lib.mkOption {
description = "Looking Glass client configuration";
default = { };
type = lib.types.submodule ./types;
type = lib.types.submodule ./_types;
example = {
app.shmFile = "/dev/kvmfr0";
@@ -232,5 +218,11 @@ in
users.users.${username}.extraGroups = [ "libvirtd" ];
environment.systemPackages = with pkgs; [ virglrenderer ];
})
(lib.mkIf cfg.moonlight.enable {
my.hm.home.packages = [ pkgs.moonlight-qt ];
my.persist.homeDirs = [
".config/Moonlight Game Streaming Project"
];
})
];
}