sops-nix: basic key setup
This commit is contained in:
parent
4b712b6b67
commit
32822bcc3a
3 changed files with 42 additions and 0 deletions
|
|
@ -29,6 +29,10 @@
|
|||
flake = false;
|
||||
url = "git+ssh://gitea@git.orlives.de:2342/schmittlauch/home-manager_secrets.git";
|
||||
};
|
||||
sops-nix = {
|
||||
url = "github:Mic92/sops-nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-direnv = {
|
||||
url = "github:nix-community/nix-direnv";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -51,6 +55,7 @@
|
|||
treefmt-nix,
|
||||
nix-darwin,
|
||||
angrr,
|
||||
sops-nix,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
|
|
@ -81,6 +86,7 @@
|
|||
};
|
||||
defaultModules = system: [
|
||||
inputInjection
|
||||
sops-nix.nixosModules.sops
|
||||
|
||||
# for some reason, `imports`-ing the home-manager module via inputInjection
|
||||
# from a sub-module causes infinite recursion, so importing it here instead
|
||||
|
|
@ -99,6 +105,7 @@
|
|||
modules = [
|
||||
{
|
||||
imports = [
|
||||
sops-nix.homeManagerModules.sops
|
||||
./home/common.nix
|
||||
./home/${confName}.nix
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue