add home-manager and sops-nix to ci

This commit is contained in:
Jörg Thalheim 2024-11-17 13:51:11 +01:00 committed by Jörg Thalheim
parent dfcebb55c8
commit fe6a1bb922
6 changed files with 114 additions and 4 deletions

11
checks/darwin.nix Normal file
View 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
View 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;
}