19 lines
362 B
Nix
19 lines
362 B
Nix
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.profiles.headful;
|
||
|
in
|
||
|
{
|
||
|
options.profiles.headful = {
|
||
|
enable = lib.mkEnableOption "headful";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
assertions = [
|
||
|
{
|
||
|
assertion = !config.profiles.server.enable;
|
||
|
message = "The headful profile is not compatible with the server profile.";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|