Introduce more options to configure individual modules

This commit is contained in:
DashieTM 2024-08-25 23:47:33 +02:00
parent 351584ecb4
commit e3619d6c94
13 changed files with 668 additions and 531 deletions

View file

@ -43,6 +43,20 @@
Resolution/refreshrate used by the monitor in the login screen.
'';
};
environments = lib.mkOption {
default = ''
Hyprland
'';
# no idea if these are written correctly
example = ''
Niri
River
'';
type = lib.types.lines;
description = ''
List of environments that should be available in the login prompt.
'';
};
};
};
@ -78,9 +92,7 @@
};
};
environment.etc."greetd/environments".text = ''
Hyprland
'';
environment.etc."greetd/environments".text = config.mods.greetd.environments;
# should technically be the same, but this is configured instead in order to provide a decent out of the box login experience.
environment.etc."greetd/hyprgreet.conf".text = ''