mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 14:14:58 +08:00
add home-manager and sops-nix to ci
This commit is contained in:
parent
dfcebb55c8
commit
fe6a1bb922
6 changed files with 114 additions and 4 deletions
11
checks/darwin.nix
Normal file
11
checks/darwin.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
../modules/nix-darwin/default.nix
|
||||
];
|
||||
documentation.enable = false;
|
||||
sops.secrets.test_key = { };
|
||||
sops.defaultSopsFile = ../pkgs/sops-install-secrets/test-assets/secrets.yaml;
|
||||
sops.age.generateKey = true;
|
||||
system.stateVersion = 5;
|
||||
}
|
||||
15
checks/home-manager.nix
Normal file
15
checks/home-manager.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
{ 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.defaultSopsFile = ../pkgs/sops-install-secrets/test-assets/secrets.yaml;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue