marleyos/modules/home/xorg/xsession/default.nix
2024-11-16 23:43:20 -08:00

34 lines
553 B
Nix

{
lib,
config,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.marleyos.xorg.xsession;
in
{
options.marleyos.xorg.xsession.enable = mkEnableOption "xsession";
config = mkIf cfg.enable {
xsession = {
enable = true;
numlock.enable = true;
# TODO: Switch to autorandr.
profileExtra = # sh
''
sudo mount -a
"${config.home.homeDirectory}/.config/xrandr/desktop.sh"
'';
initExtra = # sh
''
mpd &
pidgin &
'';
};
};
}