Move steam rom manager to a role.

This commit is contained in:
Tom Alexander 2025-02-13 19:33:07 -05:00
parent 7dd922c2a2
commit 48fa3c7436
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 34 additions and 3 deletions

View File

@ -7,9 +7,10 @@
}:
{
imports = [
./util/unfree_polyfill
./roles/shipwright
./roles/graphics
./roles/shipwright
./roles/steam_rom_manager
./util/unfree_polyfill
];
home.username = "deck";
@ -28,7 +29,6 @@
};
home.packages = with pkgs; [
steam-rom-manager
pkgs.nixgl.nixGLIntel
(pkgs.nixgl.nixGLCommon pkgs.nixgl.nixGLIntel)
pkgs.nixgl.nixVulkanIntel

View File

@ -11,5 +11,6 @@
config = {
me.graphical = true;
me.shipwright.enable = true;
me.steam_rom_manager.enable = false; # Steam rom manager UI does not render. I think it wants to be in an AppImage.
};
}

View File

@ -0,0 +1,30 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
steam_rom_manager.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install steam_rom_manager.";
};
};
config = lib.mkIf config.me.steam_rom_manager.enable (
lib.mkMerge [
(lib.mkIf config.me.graphical {
home.packages = with pkgs; [
(config.lib.nixGL.wrap steam-rom-manager)
];
})
]
);
}