feat(nfc): add enable option, inline proxmark3
This commit is contained in:
@@ -55,6 +55,7 @@
|
|||||||
shell.bash.aliases.lang-js = true;
|
shell.bash.aliases.lang-js = true;
|
||||||
shell.bash.addBinToPath = true;
|
shell.bash.addBinToPath = true;
|
||||||
my.yubikey.enable = true;
|
my.yubikey.enable = true;
|
||||||
|
nfc.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
config,
|
||||||
./proxmark3.nix
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.nfc;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nfc = {
|
||||||
|
enable = lib.mkEnableOption "NFC tools";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.proxmark3.override { withGeneric = true; })
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.packages = [
|
|
||||||
(pkgs.proxmark3.override { withGeneric = true; })
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -6,7 +6,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.nfc = {
|
options.nfc = {
|
||||||
enable = lib.mkEnableOption "NFC device access";
|
enable = lib.mkEnableOption "NFC";
|
||||||
};
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
users.users.${username}.extraGroups = [ "dialout" ];
|
users.users.${username}.extraGroups = [ "dialout" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user