1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00
sops-nix/checks/home-manager.nix
2024-12-02 09:29:15 +01:00

18 lines
538 B
Nix

{ config, ... }:
{
imports = [
../modules/home-manager/sops.nix
];
home.stateVersion = "25.05";
home.username = "sops-user";
home.homeDirectory = "/home/sops-user";
home.enableNixpkgsReleaseCheck = false;
sops.age.generateKey = true;
sops.age.keyFile = "${config.home.homeDirectory}/.age-key.txt";
sops.secrets.test_key = { };
sops.templates."template.toml".content = ''
password = "${config.sops.placeholder.test_key}";
'';
sops.defaultSopsFile = ../pkgs/sops-install-secrets/test-assets/secrets.yaml;
}