From 0c553e7a7dde25c183430c0edc09386b55eb29b1 Mon Sep 17 00:00:00 2001 From: hektor Date: Thu, 5 Feb 2026 18:48:40 +0100 Subject: [PATCH] feat: add nfc module (and use it on 'astyanax') --- home/hosts/astyanax/default.nix | 2 ++ home/modules/nfc/default.nix | 5 +++++ home/modules/nfc/proxmark3.nix | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 home/modules/nfc/default.nix create mode 100644 home/modules/nfc/proxmark3.nix diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index fba85a8..3d114d8 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -17,6 +17,7 @@ in ../../modules/git ../../modules/k8s/k9s.nix ../../modules/kitty.nix + ../../modules/nfc ../../modules/nvim.nix ../../modules/ssh.nix ../../modules/taskwarrior.nix @@ -38,6 +39,7 @@ in cloud.hetzner.enable = true; comms.signal.enable = true; github.enable = true; + nfc.proxmark3.enable = true; shell.bash = { enable = true; diff --git a/home/modules/nfc/default.nix b/home/modules/nfc/default.nix new file mode 100644 index 0000000..6c3c675 --- /dev/null +++ b/home/modules/nfc/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./proxmark3.nix + ]; +} diff --git a/home/modules/nfc/proxmark3.nix b/home/modules/nfc/proxmark3.nix new file mode 100644 index 0000000..1296350 --- /dev/null +++ b/home/modules/nfc/proxmark3.nix @@ -0,0 +1,21 @@ +{ + config, + lib, + pkgs, + ... +}: + +let + cfg = config.nfc.proxmark3; +in +{ + options.nfc.proxmark3 = { + enable = lib.mkEnableOption "proxmark3 (iceman fork)"; + }; + + config = lib.mkIf cfg.enable { + home.packages = [ + pkgs.proxmark3 + ]; + }; +}