Move steam rom manager to a role.
This commit is contained in:
parent
7dd922c2a2
commit
48fa3c7436
@ -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
|
||||
|
@ -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.
|
||||
};
|
||||
}
|
||||
|
@ -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)
|
||||
];
|
||||
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user