@@ -10,6 +10,7 @@ let
1010 if [[ "$#" -ge 1 ]]; then
1111 exec ${pkgs.rootston}/bin/rootston "$@"
1212 else
13+ ${cfg.extraSessionCommands}
1314 exec ${pkgs.rootston}/bin/rootston -C ${cfg.configFile}
1415 fi
1516 '';
@@ -21,14 +22,28 @@ in {
2122 Wayland compositor you should e.g. use Sway instead). You can manually
2223 start the compositor by running "rootston" from a terminal'';
2324
25+ extraSessionCommands = mkOption {
26+ type = types.lines;
27+ default = "";
28+ example = ''
29+ # Define a keymap (US QWERTY is the default)
30+ export XKB_DEFAULT_LAYOUT=de,us
31+ export XKB_DEFAULT_VARIANT=nodeadkeys
32+ export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle,caps:escape
33+ '';
34+ description = ''
35+ Shell commands executed just before rootston is started.
36+ '';
37+ };
38+
2439 extraPackages = mkOption {
2540 type = with types; listOf package;
2641 default = with pkgs; [
27− xwayland rxvt_unicode dmenu
42+ westonLite xwayland rofi
2843 ];
2944 defaultText = literalExample ''
3045 with pkgs; [
31− xwayland dmenu rxvt_unicode
46+ westonLite xwayland rofi
3247 ]
3348 '';
3449 example = literalExample "[ ]";
@@ -55,9 +70,8 @@ in {
5570 Logo+q = close
5671 Logo+m = maximize
5772 Alt+Tab = next_window
58− Logo+Return = exec urxvt
59− # Note: Dmenu will only work properly while e.g. urxvt is running.
60− Logo+d = exec dmenu_run
73+ Logo+Return = exec weston-terminal
74+ Logo+d = exec rofi -show run
6175 '';
6276 description = ''
6377 Default configuration for rootston (used when called without any
@@ -82,7 +96,8 @@ in {
8296
8397 hardware.opengl.enable = mkDefault true;
8498 fonts.enableDefaultFonts = mkDefault true;
99+ programs.dconf.enable = mkDefault true;
85100 };
86101
87− meta.maintainers = with lib.maintainers; [ primeos ];
102+ meta.maintainers = with lib.maintainers; [ primeos gnidorah ];
88103}