mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
xsession: verify setxkbmap service in test
This commit is contained in:
parent
1923ac3358
commit
0083087e01
2 changed files with 20 additions and 1 deletions
12
tests/modules/misc/xsession/basic-setxkbmap-expected.service
Normal file
12
tests/modules/misc/xsession/basic-setxkbmap-expected.service
Normal 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
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
|
@ -25,6 +25,13 @@ with lib;
|
|||
home-files/.xsession \
|
||||
${./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;
|
||||
}}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue