diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-21 13:31:00 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-21 13:31:00 -0800 |
commit | 010f55244d6773621725c3d991e8259265af67c2 (patch) | |
tree | 972ba4d1a2007855cfb358ec9aa7c3abadf6026c | |
parent | system: install a few more packages (diff) | |
download | world-010f55244d6773621725c3d991e8259265af67c2.tar.gz |
agenix: add flake for agenix
This will be used to store secrets in the repository.
-rw-r--r-- | flake.lock | 21 | ||||
-rw-r--r-- | flake.nix | 5 | ||||
-rw-r--r-- | lib/default.nix | 1 |
3 files changed, 27 insertions, 0 deletions
diff --git a/flake.lock b/flake.lock index ad28d95..108c6ef 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,25 @@ { "nodes": { + "agenix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1643841757, + "narHash": "sha256-9tKhu4JzoZvustC9IEWK6wKcDhPLuK/ICbLgm8QnLnk=", + "owner": "ryantm", + "repo": "agenix", + "rev": "a17d1f30550260f8b45764ddbd0391f4b1ed714a", + "type": "github" + }, + "original": { + "owner": "ryantm", + "repo": "agenix", + "type": "github" + } + }, "emacs-overlay": { "locked": { "lastModified": 1644776495, @@ -70,6 +90,7 @@ }, "root": { "inputs": { + "agenix": "agenix", "emacs-overlay": "emacs-overlay", "home-manager": "home-manager", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 48f63a4..76e08ba 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,11 @@ emacs-overlay.url = "github:nix-community/emacs-overlay"; + agenix = { + url = "github:ryantm/agenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager/release-21.11"; # We want home-manager to use the same set of nixpkgs as our system. diff --git a/lib/default.nix b/lib/default.nix index cb8616e..c2866c9 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -11,6 +11,7 @@ inherit inputs system hostname; }; modules = [ + inputs.agenix.nixosModules.age ../hosts/common ../hosts/${hostname} { |