From 0c779d9e24c87c7d31f6c7676a15a6f84c03fc88 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Thu, 26 Oct 2023 15:46:47 +0200 Subject: [PATCH] install virt-manager add common terraform postgresql backend --- home-manager/default.nix | 8 +++++++- secrets/README.md | 2 +- secrets/common-pg-tfbackend.age | 12 ++++++++++++ secrets/secrets.nix | 1 + 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 secrets/common-pg-tfbackend.age diff --git a/home-manager/default.nix b/home-manager/default.nix index f67e128..d197c59 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { imports = [ @@ -32,6 +32,7 @@ gimp libreoffice (pkgs.nerdfonts.override { fonts = [ "Hack" ]; }) + virt-manager ]; }; @@ -50,6 +51,11 @@ homeage = { identityPaths = [ "/home/pim/.ssh/age_ed25519" ]; installationType = "systemd"; + + file."common-pg-tfbackend" = { + source = ../secrets/common-pg-tfbackend.age; + symlinks = [ "${config.home.homeDirectory}/.common.pg.tfbackend" ]; + }; }; fonts.fontconfig.enable = true; diff --git a/secrets/README.md b/secrets/README.md index 3c7b191..1111f92 100644 --- a/secrets/README.md +++ b/secrets/README.md @@ -1,3 +1,3 @@ -``` +```bash nix run github:ryantm/agenix# -- -e secret1.age ``` diff --git a/secrets/common-pg-tfbackend.age b/secrets/common-pg-tfbackend.age new file mode 100644 index 0000000..c14e619 --- /dev/null +++ b/secrets/common-pg-tfbackend.age @@ -0,0 +1,12 @@ +age-encryption.org/v1 +-> ssh-ed25519 LAPUww i6BkkMy9gSSVZ+L+EMYSLakp1qA4yOGbEkLrO4Ddbxs +FsoRnCiPsJEKQj+2iJaqn+BbU+bFMAkReRotiV+0WCs +-> ssh-ed25519 vBZj5g +6YFp3yYXSEzRMXu7WyURkJk/cA87irnW5FpKRYnGSA +dJkMmnxyVEv/S9FmCrRkrYDCh+OwXK+UYno3ncr5nOk +-> 6gQa-grease Yt+ucm#U |