marleyos/modules/home/xorg/xsession/default.nix

35 lines
553 B
Nix
Raw Normal View History

2024-11-15 22:12:04 -08:00
{
lib,
config,
...
}:
let
inherit (lib) mkEnableOption mkIf;
2024-11-15 22:12:04 -08:00
cfg = config.marleyos.xorg.xsession;
2024-11-15 22:12:04 -08:00
in
{
options.marleyos.xorg.xsession.enable = mkEnableOption "xsession";
2024-11-15 22:12:04 -08:00
config = mkIf cfg.enable {
xsession = {
enable = true;
numlock.enable = true;
# TODO: Switch to autorandr.
2024-11-16 23:43:20 -08:00
profileExtra = # sh
2024-11-15 22:12:04 -08:00
''
sudo mount -a
"${config.home.homeDirectory}/.config/xrandr/desktop.sh"
'';
initExtra = # sh
''
mpd &
pidgin &
'';
};
};
}