nitrokey: Only enable on bare metal

reuse
Simon Bruder 2024-01-22 01:06:43 +01:00
parent 04c7bc089f
commit e600e15141
Signed by: simon
GPG Key ID: 347FF8699CDA0776
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@
{ config, lib, pkgs, ... }:
lib.mkMerge [
{
(lib.mkIf (!config.sbruder.machine.isVm) {
hardware.nitrokey.enable = true;
}
})
(lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [
# both depend on pypemicro, which is not needed, but nixpkgs requires it