From 28f11cc5c704b6901dc94551fb1504f0091bb69f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 3 Sep 2023 09:48:03 +0530 Subject: flake/sops-nix: init --- hosts/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hosts/common.nix') diff --git a/hosts/common.nix b/hosts/common.nix index 56f2953..8cc13d8 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -3,6 +3,7 @@ let user = config.userdata.user; groups = config.userdata.groups; + host = config.networking.hostName; in { imports = [ @@ -61,6 +62,8 @@ in htop curl neovim + age + sops ]; }; system.stateVersion = "23.05"; @@ -72,6 +75,12 @@ in ]; nixpkgs.overlays = (import ../overlays); + # sops + sops = { + defaultSopsFile = "./${host}/secrets.yaml"; + age.keyFile = "/var/secrets/sops-nix/key.txt"; + }; + # programs programs = { adb.enable = true; -- cgit v1.2.3