fix: resolve proxmark firmware flashing issues
This commit is contained in:
@@ -15,7 +15,7 @@ in
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [
|
||||
pkgs.proxmark3
|
||||
(pkgs.proxmark3.override { withGeneric = true; })
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ in
|
||||
(import ../../modules/secrets { inherit lib inputs config; })
|
||||
../../modules/docker
|
||||
../../modules/syncthing
|
||||
../../modules/nfc
|
||||
];
|
||||
|
||||
home-manager.users.${username} = import ../../home/hosts/astyanax {
|
||||
@@ -58,6 +59,7 @@ in
|
||||
|
||||
secrets.username = username;
|
||||
docker.user = username;
|
||||
nfc.user = username;
|
||||
|
||||
nix.settings.secret-key-files = [ config.sops.secrets.nix_signing_key_astyanax.path ];
|
||||
|
||||
|
||||
16
modules/nfc/default.nix
Normal file
16
modules/nfc/default.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.nfc;
|
||||
in
|
||||
{
|
||||
options.nfc = {
|
||||
user = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
config = lib.mkIf (cfg.user != null) {
|
||||
users.users.${cfg.user}.extraGroups = [ "dialout" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user