home/{hyprland,waybar}: init

This commit is contained in:
2024-12-05 19:43:58 +01:00
parent 19e89266a7
commit 3c6bb656e9
12 changed files with 626 additions and 21 deletions
+6
View File
@@ -7,6 +7,8 @@ in {
options.machineVars = {
headless = mkEnableOption "Whether or not the machine should have graphical output.";
wayland = mkEnableOption "Whether or not the machine should use Wayland as the display server.";
screens = mkOption {
type = types.attrsOf (types.submodule ( { name, ...}: {
options = {
@@ -114,6 +116,10 @@ t tools preinstalled.";
assertion = cfg.battery != null -> cfg.laptop;
message = "A battery shouldn't exist on a non laptop machine";
}
{
assertion = cfg.wayland -> !cfg.headless;
message = "A machine can't be headless and use Wayland at the same time.";
}
# FIXME:
# {
# assertion = map () (cfg.screens)