diff options
Diffstat (limited to 'nix/host.nix')
| -rw-r--r-- | nix/host.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nix/host.nix b/nix/host.nix new file mode 100644 index 0000000..7d81ffe --- /dev/null +++ b/nix/host.nix @@ -0,0 +1,21 @@ +{ config, pkgs, lib, dotfilesRoot, ... }: + +# Arch host Home-Manager profile. Layered on top of `common.nix`; adds +# only host-specific concerns that don't make sense on the VM. + +{ + imports = [ ./common.nix ]; + + home.username = builtins.getEnv "USER"; + home.homeDirectory = builtins.getEnv "HOME"; + + # ── Smartcard (Yubikey) ──────────────────────────────────────────────────── + # Nix's gnupg ships its own scdaemon. Delegate to the system pcscd + # service instead of letting nix's scdaemon open the USB device + # directly (which would race with pcscd). `pcsclite` provides the + # shared library at the path below and stays in `meta/base.txt`. + home.file.".gnupg/scdaemon.conf".text = '' + disable-ccid + pcsc-driver /usr/lib/libpcsclite.so.1 + ''; +} |
