mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
21 lines
511 B
Nix
21 lines
511 B
Nix
{ config, ... }:
|
|
let
|
|
package = config.lib.test.mkStubPackage {
|
|
buildScript = ''
|
|
mkdir -p $out/share/systemd/user
|
|
> $out/share/systemd/user/dummy.service cat <<EOF
|
|
[Service]
|
|
ExecStart=$out/bin/nonexistent
|
|
EOF
|
|
'';
|
|
};
|
|
in
|
|
{
|
|
systemd.user.packages = [ package ];
|
|
nmt.script = ''
|
|
serviceFile=home-files/.local/share/systemd/user/dummy.service
|
|
assertFileExists "$serviceFile"
|
|
assertFileContent "$serviceFile" ${package}/share/systemd/user/dummy.service
|
|
'';
|
|
}
|