1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

xsession: verify setxkbmap service in test

This commit is contained in:
Robert Helgesson 2019-09-05 01:31:44 +02:00
parent 1923ac3358
commit 0083087e01
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,12 @@
[Install]
WantedBy=graphical-session.target
[Service]
ExecStart=@setxkbmap@/bin/setxkbmap -layout 'us' -variant ''
RemainAfterExit=true
Type=oneshot
[Unit]
After=graphical-session-pre.target
Description=Set up keyboard in X
PartOf=graphical-session.target

View file

@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
with lib; with lib;
@ -25,6 +25,13 @@ with lib;
home-files/.xsession \ home-files/.xsession \
${./basic-xsession-expected.txt} ${./basic-xsession-expected.txt}
assertFileExists home-files/.config/systemd/user/setxkbmap.service
assertFileContent \
home-files/.config/systemd/user/setxkbmap.service \
${pkgs.substituteAll {
src = ./basic-setxkbmap-expected.service;
inherit (pkgs.xorg) setxkbmap;
}}
''; '';
}; };
} }