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