blob: d589002c321631497e6edbdcf50fd5c38d2f842a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ 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";
# The Arch host keeps its chezmoi source state at ~/dotfiles (the
# canonical clone location for the dotfiles repo). The VM convention
# of ~/.local/share/dotfiles doesn't apply here.
my.dotfilesPath = "${builtins.getEnv "HOME"}/dotfiles";
# ── 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
'';
}
|