refactor for preparation of flake based systems
This commit is contained in:
parent
6527f67145
commit
25e9d06354
121 changed files with 449 additions and 40 deletions
30
modules_old/validations.nix
Normal file
30
modules_old/validations.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
config.assertions = [
|
||||
{
|
||||
assertion =
|
||||
lib.length (
|
||||
lib.filter (x: x) [
|
||||
config.mods.de_cosmic.enable
|
||||
config.mods.de_gnome_xorg.enable
|
||||
config.mods.de_gnome_wayland.enable
|
||||
]
|
||||
) <= 1;
|
||||
message = ''
|
||||
Configuration Error: Multiple desktop environments are enabled.
|
||||
Please enable only one of the following:
|
||||
- mods.de_cosmic.enable
|
||||
- mods.de_gnome_xorg.enable
|
||||
- mods.de_gnome_wayland.enable
|
||||
'';
|
||||
}
|
||||
{
|
||||
# // TODO check sinc epoulse is no longer
|
||||
assertion = !(config.mods.de_cosmic.enable && config.mods.audio.enable);
|
||||
message = ''
|
||||
Configuration Error: cannot use audio with cosmic. Check if this is true anymore...
|
||||
Remove: mods.audio.enable
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue