19 lines
359 B
Nix
19 lines
359 B
Nix
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.profiles.emulation;
|
||
|
in
|
||
|
{
|
||
|
options.profiles.emulation = {
|
||
|
enable = lib.mkEnableOption "emulation";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
assertions = [
|
||
|
{
|
||
|
assertion = config.profiles.desktop.enable;
|
||
|
message = "The emulation profile depends on the desktop profile.";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|