laptop: fix cursor and add pam u2f

This commit is contained in:
Vivian 2022-09-05 14:52:11 +02:00
parent 6e43289f00
commit 3c32f4e12b
5 changed files with 32 additions and 13 deletions

View file

@ -195,7 +195,7 @@ in
slurp
gdb
swaylock-effects
swaylock-effects # Has to be installed globally so that pam module works
];
programs.steam = {
@ -226,6 +226,15 @@ in
keep-derivations = true
'';
# Enables logging in with my Solokey
security.pam.u2f = {
enable = true;
debug = false;
cue = true;
control = "sufficient";
authFile = "/etc/u2f-mappings"; # use `pamu2fcfg` from `pkgs.pam_u2f` to generate this config
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -106,6 +106,7 @@
mkhl.direnv
tamasfe.even-better-toml
valentjn.vscode-ltex
vscodevim.vim
];
};

View file

@ -1,8 +1,8 @@
{ pkgs, inputs, ... }: {
home.file.".config/hypr/hyprpaper.conf".text = ''
ipc = off
preload = ~/cloud/Pictures/Wallpapers-Laptop/wallpaper-nix.png
wallpaper = eDP-1,~/cloud/Pictures/Wallpapers-Laptop/wallpaper-nix.png
preload = ~/cloud/Pictures/Wallpapers-Laptop/wallpaper-nix-pink.png
wallpaper = eDP-1,~/cloud/Pictures/Wallpapers-Laptop/wallpaper-nix-pink.png
'';
home.file.".xsettingsd".text = ''
@ -14,8 +14,8 @@
enable = true;
extraConfig = ''
exec-once=${pkgs.hyprpaper}/bin/hyprpaper
exec-once=hyprctlhyprpap setcursor Catppuccin-Frappe-Pink-Cursors 32
exec-once=${pkgs.xsettingsd}/bin/xsettingsd
exec-once=hyprctl setcursor Catppuccin-Frappe-Pink-Cursors 32
exec-once=${pkgs.xsettingsd}/bin/xsettingsd &
exec-once=eww daemon
exec-once=eww open bar