marleyos/modules/home/xorg/xsession/default.nix
punkfairie 15372b7726
feat: ${namespace} -> marleyos
There was little point to doing this anyway as project-wide find &
replace is trivial.
2024-11-16 22:36:34 -08:00

35 lines
553 B
Nix

{
lib,
config,
...
}:
let
inherit (lib) mkIf;
inherit (lib.marleyos) mkEnableModule;
cfg = config.marleyos.xorg.xsession;
in
{
options = mkEnableModule "xorg.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 &
'';
};
};
}