refactor: use 'import-as-enable' pattern
This commit is contained in:
@@ -1,21 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
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.override { withGeneric = true; })
|
||||
];
|
||||
};
|
||||
home.packages = [
|
||||
(pkgs.proxmark3.override { withGeneric = true; })
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user