2024-11-15 22:12:04 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
2025-01-13 21:05:10 -08:00
|
|
|
}: let
|
2024-11-16 22:34:40 -08:00
|
|
|
cfg = config.marleyos.xorg.xsession;
|
2025-01-13 21:05:10 -08:00
|
|
|
in {
|
|
|
|
options.marleyos.xorg.xsession.enable = lib.mkEnableOption "xsession";
|
2024-11-15 22:12:04 -08:00
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-15 22:12:04 -08:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
numlock.enable = true;
|
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
profileExtra =
|
|
|
|
# sh
|
2024-11-15 22:12:04 -08:00
|
|
|
''
|
|
|
|
sudo mount -a
|
|
|
|
'';
|
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
initExtra =
|
|
|
|
# sh
|
2024-11-15 22:12:04 -08:00
|
|
|
''
|
|
|
|
mpd &
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|