nitrokey: Only enable on bare metal

This commit is contained in:
Simon Bruder 2024-01-22 01:06:43 +01:00
parent 04c7bc089f
commit e600e15141
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

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