This commit is contained in:
Audrey 2025-03-22 14:22:58 -07:00
parent 9c34d4fd14
commit 57fb5b54ab
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let nixKey = "/var/lib/nix/binary-cache-key"; let nixKey = "/var/lib/nix/binary-cache-key";
# just using the filepath interacts poorly with typechecking under diverted stores
toStore = path: pkgs.writeText (builtins.baseNameOf path) (builtins.readFile path);
in { in {
imports = [ ./overlays/packages.nix ]; imports = [ ./overlays/packages.nix ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
@ -172,7 +174,7 @@ in {
security.pam.u2f = { security.pam.u2f = {
enable = true; enable = true;
settings.authfile = ./dotfiles/u2f-keys; settings.authfile = toStore ./dotfiles/u2f-keys;
settings.cue = true; settings.cue = true;
}; };