🔐 Yubikey

Can now log in using yubikey.

Moved icons for hyprcursor and added a manifest file.
This commit is contained in:
Martin Berg Alstad 2024-12-29 11:32:06 +01:00
parent 6d6331f4b4
commit bd8a71e177
Signed by: martials
GPG Key ID: A3824877B269F2E2
47 changed files with 29 additions and 11 deletions

View File

@ -16,6 +16,7 @@
./audio.nix
./networking.nix
./development.nix
./security.nix
];
# Bootloader.
@ -102,10 +103,7 @@
# programs.mtr.enable = true;
programs = {
dconf = {
enable = true;
};
dconf.enable = true;
gnupg.agent.enable = true;
@ -137,11 +135,7 @@
flatpak.enable = true;
gnome = {
gnome-keyring.enable = true;
};
pcscd.enable = true;
gnome.gnome-keyring.enable = true;
xserver = {
enable = true;

View File

@ -1,13 +1,16 @@
{ pkgs, ... }:
{
# TODO Not working correctly, see https://github.com/hyprwm/hyprcursor/issues/19
home.packages = with pkgs; [
hyprcursor
];
# TODO remove in favour of hyprland flake
home.file = {
".local/share/icons/rose-pine-hyprcursor" = {
source = ./icons;
".local/share/icons/rose-pine-hyprcursor/manifest.hl".source = ./manifest.hl;
".local/share/icons/rose-pine-hyprcursor/hyprcursors" = {
source = ./hyprcursors;
recursive = true;
};
};

View File

@ -0,0 +1,4 @@
name = rose-pine-hyprcursor
description = BreezeX remixed with Rose Pine remixed to Hyprcursor format
version = 0.3.2
cursors_directory = hyprcursors

17
security.nix Normal file
View File

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
yubioath-flutter
];
security.pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
};
services = {
pcscd.enable = true;
udev.packages = with pkgs; [ yubikey-personalization ];
};
}