mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
rootston module: better defaults
This commit is contained in:
parent
4271a210b0
commit
ececaafee1
1 changed files with 20 additions and 5 deletions
|
@ -10,6 +10,7 @@ let
|
||||||
if [[ "$#" -ge 1 ]]; then
|
if [[ "$#" -ge 1 ]]; then
|
||||||
exec ${pkgs.rootston}/bin/rootston "$@"
|
exec ${pkgs.rootston}/bin/rootston "$@"
|
||||||
else
|
else
|
||||||
|
${cfg.extraSessionCommands}
|
||||||
exec ${pkgs.rootston}/bin/rootston -C ${cfg.configFile}
|
exec ${pkgs.rootston}/bin/rootston -C ${cfg.configFile}
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
@ -21,14 +22,28 @@ in {
|
||||||
Wayland compositor you should e.g. use Sway instead). You can manually
|
Wayland compositor you should e.g. use Sway instead). You can manually
|
||||||
start the compositor by running "rootston" from a terminal'';
|
start the compositor by running "rootston" from a terminal'';
|
||||||
|
|
||||||
|
extraSessionCommands = mkOption {
|
||||||
|
type = types.lines;
|
||||||
|
default = "";
|
||||||
|
example = ''
|
||||||
|
# Define a keymap (US QWERTY is the default)
|
||||||
|
export XKB_DEFAULT_LAYOUT=de,us
|
||||||
|
export XKB_DEFAULT_VARIANT=nodeadkeys
|
||||||
|
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle,caps:escape
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Shell commands executed just before rootston is started.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = mkOption {
|
extraPackages = mkOption {
|
||||||
type = with types; listOf package;
|
type = with types; listOf package;
|
||||||
default = with pkgs; [
|
default = with pkgs; [
|
||||||
xwayland rxvt_unicode dmenu
|
westonLite xwayland rofi
|
||||||
];
|
];
|
||||||
defaultText = literalExample ''
|
defaultText = literalExample ''
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
xwayland dmenu rxvt_unicode
|
westonLite xwayland rofi
|
||||||
]
|
]
|
||||||
'';
|
'';
|
||||||
example = literalExample "[ ]";
|
example = literalExample "[ ]";
|
||||||
|
@ -55,9 +70,8 @@ in {
|
||||||
Logo+q = close
|
Logo+q = close
|
||||||
Logo+m = maximize
|
Logo+m = maximize
|
||||||
Alt+Tab = next_window
|
Alt+Tab = next_window
|
||||||
Logo+Return = exec urxvt
|
Logo+Return = exec weston-terminal
|
||||||
# Note: Dmenu will only work properly while e.g. urxvt is running.
|
Logo+d = exec rofi -show run
|
||||||
Logo+d = exec dmenu_run
|
|
||||||
'';
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Default configuration for rootston (used when called without any
|
Default configuration for rootston (used when called without any
|
||||||
|
@ -82,6 +96,7 @@ in {
|
||||||
|
|
||||||
hardware.opengl.enable = mkDefault true;
|
hardware.opengl.enable = mkDefault true;
|
||||||
fonts.enableDefaultFonts = mkDefault true;
|
fonts.enableDefaultFonts = mkDefault true;
|
||||||
|
programs.dconf.enable = mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.maintainers = with lib.maintainers; [ primeos ];
|
meta.maintainers = with lib.maintainers; [ primeos ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue