git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #33085 from gnidorah/rootston

rootston module: better defaults rootston module, orbment/bemenu: change my maintainership

commitb15eea6f3102e31aad3f60826ac0637b892688a9 authorMichael Weiss <dev.primeos@gmail.com> dateWed 27 Dec 2017, 12:01 (9 years ago) parente8db786c955c13
2 files changed+21−7
nixos/modules/programs/rootston.nix+21−6 pkgs/applications/window-managers/orbment/bemenu.nix−1
nixos/modules/programs/rootston.nix+21−6
@@ -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}
pkgs/applications/window-managers/orbment/bemenu.nix−1
@@ -21,7 +21,6 @@ stdenv.mkDerivation rec {
2121 description = "A dynamic menu library and client program inspired by dmenu";
2222 homepage = src.meta.homepage;
2323 license = with licenses; [ gpl3 lgpl3 ];
24− maintainers = with maintainers; [ gnidorah ];
2524 platforms = platforms.linux;
2625 };
2726}