1
0
Fork 0
puter/profiles/server/default.nix

19 lines
360 B
Nix
Raw Normal View History

2025-05-18 01:08:10 +02:00
{ config, lib, ... }:
let
cfg = config.profiles.server;
in
2025-05-11 22:49:04 +02:00
{
2025-05-18 01:08:10 +02:00
options.profiles.server = {
enable = lib.mkEnableOption "server";
};
2025-05-11 22:49:04 +02:00
2025-05-18 01:08:10 +02:00
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = !config.profiles.desktop.enable;
message = "The server profile is not compatible with the desktop profile.";
}
];
};
2025-05-11 22:49:04 +02:00
}