From 24a3b1a96e167b809d634878d016a729969278c0 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 27 Dec 2024 17:55:29 +0100 Subject: feat(shared): add vpn --- nixos/profiles/workstation/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'nixos/profiles/workstation/default.nix') diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix index ddc9a8c..3be5c6c 100644 --- a/nixos/profiles/workstation/default.nix +++ b/nixos/profiles/workstation/default.nix @@ -1,5 +1,8 @@ { config, pkgs, ... }: +let + npins = import ../../npins; +in { imports = [ ../common @@ -9,12 +12,17 @@ ./create.nix ]; - environment.systemPackages = with pkgs; [ - npins + environment.systemPackages = [ + pkgs.npins + (pkgs.callPackage "${npins.agenix}/pkgs/agenix.nix" {}) ]; environment.sessionVariables = { # Tell .zshrc to source zshrc-workstation.sh. MYNIX_PROFILE = "workstation"; }; + + # Age defaults to this anyway when openssh is enabled. + # We're setting this here for workstations where openssh is disabled. + age.identityPaths = ["/etc/ssh/ssh_host_ed25519_key"]; } -- cgit v1.2.3