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

37 lines
574 B
Nix
Raw Normal View History

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