updated dotfiles

This commit is contained in:
mason committed 2026-11-14 14:18:13 -06:00
1 parent 7b3dca15ca
commit 34baf7b016
2 files changed
+37 -2

No files matched your search

+3 -1
View File
@@ -1,5 +1,5 @@
# Font Configuration
# font_family Inconsolata Nerd Font
# font_family Noto Sans Mono
font_size 12.0
# Window Configuration
@@ -40,6 +40,8 @@ include dank-theme.conf
shell /run/current-system/sw/bin/fish
# BEGIN_KITTY_FONTS
font_family family="Inconsolata Nerd Font Mono"
bold_font auto
+34 -1
View File
@@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running 'nixos-help').
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
# Java 25 (needed for Minecraft 26.2) isn't in 25.05; pull it from unstable.
@@ -388,6 +388,8 @@ in
# Security
pkgs.kdePackages.kleopatra
gnupg
pam_u2f
yubikey-manager
riseup-vpn
cryptsetup
@@ -554,6 +556,37 @@ in
'';
};
# YubiKey U2F login — touch to authenticate at greetd, no password
security.pam.u2f = {
enable = true;
settings = {
authfile = "/etc/u2f_mappings";
cue = true; # shows "Please touch the device" prompt
};
};
security.pam.services.greetd.text = lib.mkForce ''
auth sufficient pam_unix.so nullok
auth sufficient ${pkgs.pam_u2f}/lib/security/pam_u2f.so authfile=/etc/u2f_mappings cue
auth required pam_deny.so
account required pam_unix.so
session required pam_unix.so
session optional ${pkgs.systemd}/lib/security/pam_systemd.so
'';
# dux lock screen PAM service (dankshell) — password OR YubiKey
security.pam.services.dankshell.text = lib.mkForce ''
auth sufficient pam_unix.so nullok
auth sufficient ${pkgs.pam_u2f}/lib/security/pam_u2f.so authfile=/etc/u2f_mappings cue
auth required pam_deny.so
account required pam_unix.so
session required pam_unix.so
'';
system.stateVersion = "25.05"; # Did you read the comment?
}