Skip to content

Commit

Permalink
{darwin,home-manager}: add example template
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Dec 2, 2024
1 parent 8d13626 commit fb055f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 7 additions & 1 deletion checks/darwin.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@

{
config,
...
}:
{
imports = [
../modules/nix-darwin/default.nix
];
documentation.enable = false;
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;
sops.age.generateKey = true;
system.stateVersion = 5;
Expand Down
7 changes: 5 additions & 2 deletions checks/home-manager.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

{ config, ... }: {
{ config, ... }:
{
imports = [
../modules/home-manager/sops.nix
];
Expand All @@ -11,5 +11,8 @@
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;
}

0 comments on commit fb055f3

Please sign in to comment.