convert graphical folder to modules
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user