rootston module: better defaults

gnidorah ececaafe 4271a210

+20 -5
+20 -5
nixos/modules/programs/rootston.nix
··· 10 10 if [[ "$#" -ge 1 ]]; then 11 11 exec ${pkgs.rootston}/bin/rootston "$@" 12 12 else 13 + ${cfg.extraSessionCommands} 13 14 exec ${pkgs.rootston}/bin/rootston -C ${cfg.configFile} 14 15 fi 15 16 ''; ··· 21 22 Wayland compositor you should e.g. use Sway instead). You can manually 22 23 start the compositor by running "rootston" from a terminal''; 23 24 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 + 24 39 extraPackages = mkOption { 25 40 type = with types; listOf package; 26 41 default = with pkgs; [ 27 - xwayland rxvt_unicode dmenu 42 + westonLite xwayland rofi 28 43 ]; 29 44 defaultText = literalExample '' 30 45 with pkgs; [ 31 - xwayland dmenu rxvt_unicode 46 + westonLite xwayland rofi 32 47 ] 33 48 ''; 34 49 example = literalExample "[ ]"; ··· 55 70 Logo+q = close 56 71 Logo+m = maximize 57 72 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 61 75 ''; 62 76 description = '' 63 77 Default configuration for rootston (used when called without any ··· 82 96 83 97 hardware.opengl.enable = mkDefault true; 84 98 fonts.enableDefaultFonts = mkDefault true; 99 + programs.dconf.enable = mkDefault true; 85 100 }; 86 101 87 102 meta.maintainers = with lib.maintainers; [ primeos ];