mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
20 lines
530 B
Nix
20 lines
530 B
Nix
{ config, ... }:
|
|
let
|
|
somePath = "/some/random/path/I/store/pwds";
|
|
in
|
|
{
|
|
home.stateVersion = "25.11";
|
|
programs.password-store = {
|
|
enable = true;
|
|
settings.PASSWORD_STORE_DIR = somePath;
|
|
};
|
|
services.pass-secret-service = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileContains home-files/.config/systemd/user/pass-secret-service.service \
|
|
'ExecStart=${config.services.pass-secret-service.package}/bin/pass_secret_service --path ${somePath}'
|
|
'';
|
|
}
|