convert graphical folder to modules

This commit is contained in:
Kopatz
2024-04-16 21:43:24 +02:00
parent 9d79d01c5e
commit 409d684b17
17 changed files with 375 additions and 236 deletions

View File

@@ -1,7 +1,16 @@
{ config, pkgs, inputs, ... }:
{lib, config, pkgs, inputs, ... }:
with lib;
let
cfg = config.kop.graphical.emulators;
in
{
environment.systemPackages = with pkgs; [
snes9x
];
options.kop.graphical.emulators = {
enable = mkEnableOption "Enables emulators";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
snes9x
];
};
}