mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 09:09:45 +01:00
22 lines
499 B
Nix
22 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
|
||
|
'';
|
||
|
};
|
||
|
}
|