Getting more idomatic nix modules setup... will tackle users dir later

This commit is contained in:
RingOfStorms (Josh) 2024-10-10 15:21:39 -05:00
parent 6316fffeb1
commit 913cff0ffa
41 changed files with 675 additions and 498 deletions

View file

@ -1,22 +1,29 @@
{ lib, config, ... }:
{
# config.assertions = [
# {
# assertion =
# lib.length (
# lib.filter (x: x) [
# config.my_modules.de_cosmic.enable
# config.my_modules.de_gnome_xorg.enable
# config.my_modules.de_gnome_wayland.enable
# ]
# ) <= 1;
# message = ''
# Configuration Error: Multiple desktop environments are enabled.
# Please enable only one of the following:
# - my_modules.de_cosmic.enable
# - my_modules.de_gnome_xorg.enable
# - my_modules.de_gnome_wayland.enable
# '';
# }
# ];
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
'';
}
{
assertion = !(config.mods.de_cosmic.enable && config.mods.audio_pulse.enable);
message = ''
Configuration Error: cannot use pulse audio with cosmic.
Remove: mods.audio_pulse.enable
'';
}
];
}