1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(ci): streamline definition

This commit is contained in:
2021-12-31 16:42:22 +01:00
parent 12cd6230fe
commit a6792399f1

14
ci.nix
View File

@@ -11,20 +11,12 @@ let
echo foo > ${nixpkgs.lib.escapeShellArg path} echo foo > ${nixpkgs.lib.escapeShellArg path}
'') paths} '') paths}
''; '';
nixPath = nixpkgs.lib.concatStringsSep ":" [ nixPath = nixpkgs.lib.concatStringsSep ":" ([
"nixos-config=${toString ./.}/systems/${name}/configuration.nix"
"niveum=${toString ./.}" "niveum=${toString ./.}"
"nixpkgs=${inputs.nixpkgs}" "nixos-config=${toString ./.}/systems/${name}/configuration.nix"
"nixpkgs-unstable=${inputs.nixpkgs-unstable}"
"stockholm=${inputs.stockholm}"
"home-manager=${inputs.home-manager}"
"nix-writers=${inputs.nix-writers}"
"retiolum=${inputs.retiolum}"
"menstruation-backend=${inputs.menstruation-backend}"
"menstruation-telegram=${inputs.menstruation-telegram}"
"system-secrets=${systemSecrets}" "system-secrets=${systemSecrets}"
"secrets=${sharedSecrets}" "secrets=${sharedSecrets}"
]; ] ++ nixpkgs.lib.mapAttrsToList (name: value: "${name}=${value}") inputs);
# cd ~/.password-store/shared && find * -type f | sed 's/.gpg$//' # cd ~/.password-store/shared && find * -type f | sed 's/.gpg$//'
sharedSecrets = ensureFiles [ sharedSecrets = ensureFiles [
"di.fm/key" "di.fm/key"