nixos/xserver: Document the layouts sed expression
This was brought up by @0xABAB in #26984 by the following comment: https://github.com/NixOS/nixpkgs/pull/26984#discussion_r125146405 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
02ce696304
commit
d97cdfc591
@ -652,6 +652,10 @@ in
|
||||
inherit (cfg) layout xkbDir;
|
||||
} ''
|
||||
if sed -n -e ':i /^! \(layout\|variant\) *$/ {
|
||||
# Loop through all of the layouts/variants until we hit another ! at
|
||||
# the start of the line or the line is empty ('t' branches only if
|
||||
# the last substitution was successful, so if the line is empty the
|
||||
# substition will fail).
|
||||
:l; n; /^!/bi; s/^ *\([^ ]\+\).*/\1/p; tl
|
||||
}' "$xkbDir/rules/base.lst" | grep -qxF "$layout"
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user