Compare commits

...

2 commits

Author SHA1 Message Date
Katherina Walshe-Grey 6bf38b7814 Set up agenix for secrets management 2024-06-18 14:20:45 +01:00
Katherina Walshe-Grey 45e857747d npins update 2024-06-18 11:21:00 +01:00
4 changed files with 32 additions and 5 deletions

View file

@ -1,13 +1,19 @@
{ name, nodes, config, lib, pkgs, ... }: { name, nodes, config, lib, pkgs, ... }:
{ let sources = import ../npins;
in {
deployment = { deployment = {
allowLocalDeployment = true; allowLocalDeployment = true;
targetHost = null; targetHost = null;
tags = [ "local" ]; tags = [ "local" ];
}; };
nixpkgs.config.packageOverrides = pkgs: {
agenix = (import "${sources.agenix}" { inherit pkgs; }).agenix;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
agenix
colmena colmena
npins npins
]; ];

View file

@ -10,6 +10,7 @@ in {
imports = [ imports = [
(import "${sources.home-manager}/nixos") (import "${sources.home-manager}/nixos")
(import "${sources.agenix}/modules/age.nix")
./pinning.nix ./pinning.nix
./common/utilities.nix ./common/utilities.nix
./users/qenya.nix ./users/qenya.nix

View file

@ -1,5 +1,20 @@
{ {
"pins": { "pins": {
"agenix": {
"type": "GitRelease",
"repository": {
"type": "GitHub",
"owner": "ryantm",
"repo": "agenix"
},
"pre_releases": false,
"version_upper_bound": null,
"release_prefix": null,
"version": "0.15.0",
"revision": "564595d0ad4be7277e07fa63b5a991b3c645655d",
"url": "https://api.github.com/repos/ryantm/agenix/tarball/0.15.0",
"hash": "01dhrghwa7zw93cybvx4gnrskqk97b004nfxgsys0736823956la"
},
"home-manager": { "home-manager": {
"type": "Git", "type": "Git",
"repository": { "repository": {
@ -20,9 +35,9 @@
"repo": "nix-vscode-extensions" "repo": "nix-vscode-extensions"
}, },
"branch": "master", "branch": "master",
"revision": "b601ea2daf217f0e9a5247aa90c1cdc3ab169c41", "revision": "b1d364d5f9d3d7fee8fa854d553cd95d69b9ff4c",
"url": "https://github.com/nix-community/nix-vscode-extensions/archive/b601ea2daf217f0e9a5247aa90c1cdc3ab169c41.tar.gz", "url": "https://github.com/nix-community/nix-vscode-extensions/archive/b1d364d5f9d3d7fee8fa854d553cd95d69b9ff4c.tar.gz",
"hash": "1mfsmlbykx2w0rlc6ax4gf926c499zsfvsq64jb7zc6d2fkqnwf6" "hash": "0ig6wl067fg1ia3m8jisq8am8hrpxicvh20113p5d9qvm7i2zxni"
}, },
"nixpkgs": { "nixpkgs": {
"type": "Channel", "type": "Channel",

5
secrets/secrets.nix Normal file
View file

@ -0,0 +1,5 @@
let
yevaud = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICHUAgyQhl390yUObLUI+jEbuNrZ2U6+8px628DolD+T";
systems = [ yevaud ];
in
{ }