punkfairie
6a2b253f83
Modules were being placed at <group>.<namespace>.<module> instead of <namespace>.<group>.<module>
36 lines
574 B
Nix
36 lines
574 B
Nix
{
|
|
lib,
|
|
config,
|
|
namespace,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkIf;
|
|
inherit (lib.${namespace}) mkEnableModule;
|
|
|
|
cfg = config.${namespace}.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 &
|
|
'';
|
|
};
|
|
};
|
|
}
|