mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
16 lines
536 B
Nix
16 lines
536 B
Nix
{ lib, ... }:
|
|
let
|
|
# Try to access the extra builtin we loaded via nix-plugins.
|
|
# Throw an error if that doesn't exist.
|
|
sopsImportEncrypted =
|
|
assert lib.assertMsg (builtins ? extraBuiltins.sopsImportEncrypted)
|
|
"The extra builtin 'sopsImportEncrypted' is not available, so repo.secrets cannot be decrypted. Did you forget to add nix-plugins and point it to `./nix/extra-builtins.nix` ?";
|
|
builtins.extraBuiltins.sopsImportEncrypted;
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
(sopsImportEncrypted ../secrets/repo/globals.nix.enc)
|
|
];
|
|
|
|
}
|