Moved yubikey config to security dir and rename

This commit is contained in:
Martin Berg Alstad 2025-04-15 12:58:35 +02:00
parent 16c4a8f46b
commit 0474fd9802
Signed by: martials
GPG Key ID: 706F53DD087A91DE
4 changed files with 8 additions and 23 deletions

21
flake.lock generated
View File

@ -509,31 +509,10 @@
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nixvim": "nixvim", "nixvim": "nixvim",
"sops-nix": "sops-nix",
"spicetify-nix": "spicetify-nix", "spicetify-nix": "spicetify-nix",
"zen-browser": "zen-browser" "zen-browser": "zen-browser"
} }
}, },
"sops-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1744103455,
"narHash": "sha256-SR6+qjkPjGQG+8eM4dCcVtss8r9bre/LAxFMPJpaZeU=",
"owner": "mic92",
"repo": "sops-nix",
"rev": "69d5a5a4635c27dae5a742f36108beccc506c1ba",
"type": "github"
},
"original": {
"owner": "mic92",
"repo": "sops-nix",
"type": "github"
}
},
"spicetify-nix": { "spicetify-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View File

@ -17,7 +17,7 @@
./office.nix ./office.nix
./hyprland ./hyprland
./sddm.nix ./sddm.nix
./security.nix ./security
./shell.nix ./shell.nix
./social.nix ./social.nix
./users.nix ./users.nix

View File

@ -0,0 +1,5 @@
{
imports = [
./yubikey.nix
];
}

View File

@ -1,9 +1,10 @@
# Yubikey config: https://nixos.wiki/wiki/Yubikey#pam_u2f
{ pkgs, ... }: { pkgs, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnupg gnupg
yubioath-flutter yubioath-flutter # GUI
]; ];
programs.gnupg.agent.enable = true; programs.gnupg.agent.enable = true;