dockercompat&sops
All checks were successful
Nix Build / build-nixos (push) Successful in 5m57s

This commit is contained in:
soraefir
2024-04-21 10:24:22 +02:00
parent 8a09c870d7
commit 29eeb04fac
3 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,10 @@
{ config, pkgs, ... }:
let
isCI = builtins.elem config.syscfg.hostname [ "ci" "sandbox" ];
keyFilePath =
(if isCI then "./mock-key.txt" else "/var/lib/sops-nix/age-key.txt");
keyFilePath = (if isCI then
"/var/lib/sops-nix/mock-key.txt"
else
"/var/lib/sops-nix/age-key.txt");
sopsFilePath = (if isCI then ./mock.yaml else ./common.yaml);
in {
environment.systemPackages = with pkgs; [ sops ];