1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-16 16:19:44 +01:00
home-manager/tests/modules/programs/swayr/empty-configuration.nix
9p4 c067d57fc4
swayr: add module (#4322)
a window switcher for sway
2023-11-06 18:05:18 +01:00

21 lines
499 B
Nix

{ config, pkgs, ... }:
{
config = {
programs.swayr = {
enable = true;
package = config.lib.test.mkStubPackage { };
systemd.enable = true;
};
nmt.script = ''
serviceFile=home-files/.config/systemd/user/swayrd.service
assertFileExists $serviceFile
assertFileRegex $serviceFile 'ExecStart=.*/bin/swayrd'
assertFileRegex $serviceFile 'Environment=RUST_BACKTRACE=1'
assertPathNotExists home-files/.config/swayr/config.toml
'';
};
}