secrets: setup agenix

This commit is contained in:
Antoine Martin 2022-01-17 21:56:41 +01:00
parent d7bf5fdbf4
commit c4fe135612
7 changed files with 100 additions and 12 deletions

View file

@ -15,6 +15,12 @@
ref = "nixos-unstable-small";
};
agenix = {
type = "github";
owner = "ryantm";
repo = "agenix";
};
emacs-overlay = {
type = "github";
owner = "nix-community";
@ -45,7 +51,7 @@
};
};
outputs = { self, nixpkgs, home-manager, ... } @inputs: {
outputs = { self, nixpkgs, home-manager, agenix, ... } @inputs: {
nixosModules = {
home = {
home-manager.useGlobalPkgs = true;
@ -74,9 +80,13 @@
inherit system;
config.allowUnfree = true;
};
})
agenix.overlay
] ++ builtins.attrValues self.overlays;
sharedModules = [
agenix.nixosModules.age
home-manager.nixosModule
{ nixpkgs.overlays = shared_overlays; }
] ++ (nixpkgs.lib.attrValues self.nixosModules);