whatever
This commit is contained in:
parent
be9fb9278e
commit
b8af0e9761
165 changed files with 1815 additions and 1431 deletions
29
profiles/desktop/default.nix
Normal file
29
profiles/desktop/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.profiles.desktop;
|
||||
in
|
||||
{
|
||||
options.profiles.desktop = {
|
||||
enable = lib.mkEnableOption "desktop";
|
||||
};
|
||||
|
||||
# imports = lib.optionals cfg.enable (lib.findModules {} [./profile]);
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
imports = lib.findModules { } [ ./profile ];
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = config.profiles.server.enable == false;
|
||||
message = "The desktop profile is not compatible with the server profile.";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# config.assertions = lib.mkIf cfg.enable [
|
||||
# {
|
||||
# assertion = config.profiles.server.enable == false;
|
||||
# message = "The desktop profile is not compatible with the server profile.";
|
||||
# }
|
||||
# ];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue