mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 19:46:30 +02:00
18 lines
438 B
Nix
18 lines
438 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
services.pass-secret-service = {
|
||
|
enable = true;
|
||
|
package = config.lib.test.mkStubPackage { };
|
||
|
storePath = "/mnt/password-store";
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
serviceFile=home-files/.config/systemd/user/pass-secret-service.service
|
||
|
|
||
|
assertFileExists $serviceFile
|
||
|
assertFileRegex $serviceFile 'ExecStart=.*/bin/pass_secret_service'
|
||
|
assertFileRegex $serviceFile '/mnt/password-store'
|
||
|
'';
|
||
|
}
|