From 3364a4505d9144987f120ba69e78433017b6f7b0 Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Sun, 3 Dec 2023 16:48:54 +0100 Subject: [PATCH] Add nitrokey hardware --- nixos/includes/hardware/nitrokey.nix | 3 +++ nixos/includes/system/sshclient.nix | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 nixos/includes/hardware/nitrokey.nix create mode 100644 nixos/includes/system/sshclient.nix diff --git a/nixos/includes/hardware/nitrokey.nix b/nixos/includes/hardware/nitrokey.nix new file mode 100644 index 0000000..8ffd61b --- /dev/null +++ b/nixos/includes/hardware/nitrokey.nix @@ -0,0 +1,3 @@ +{ + hardware.nitrokey.enable = true; +} diff --git a/nixos/includes/system/sshclient.nix b/nixos/includes/system/sshclient.nix new file mode 100644 index 0000000..06098ba --- /dev/null +++ b/nixos/includes/system/sshclient.nix @@ -0,0 +1,11 @@ +{pkgs, ...}: +{ + environment.systemPackages = with pkgs; [ + lxqt.lxqt-openssh-askpass + ]; + programs.ssh = { + startAgent = false; + enableAskPassword = true; + askPassword = "${pkgs.lxqt.lxqt-openssh-askpass}/bin/lxqt-openssh-askpass"; + }; +}