Add sops to manage secrets

This commit is contained in:
Jakob Lechner 2022-04-27 10:32:05 +00:00
parent 5c0fbfd6c4
commit 97970e7fb9
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
2 changed files with 32 additions and 2 deletions

View file

@ -16,6 +16,11 @@
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
@ -50,6 +55,8 @@
just
nixpkgs-fmt
shellcheck
sops
ssh-to-age
]);
shellHook = ''
@ -76,7 +83,9 @@
nixpkgs.overlays = [ nur.overlay ];
}] ++ [
home-manager.nixosModules.home-manager
] ++ extraModules;
] ++ (with inputs; [
sops-nix.nixosModules.sops
]) ++ extraModules;
})
(import ./machines inputs);
};