nitrokey: Fix module
For some reason, using the // atribute set merge operator does not work here.
This commit is contained in:
parent
54218c7278
commit
04a0a6e5ff
|
@ -1,12 +1,14 @@
|
||||||
# SPDX-FileCopyrightText: 2023 Simon Bruder <simon@sbruder.de>
|
# SPDX-FileCopyrightText: 2023-2024 Simon Bruder <simon@sbruder.de>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
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
|
||||||
# (even though it could have been optional: https://github.com/NixOS/nixpkgs/pull/183099#discussion_r933226708)
|
# (even though it could have been optional: https://github.com/NixOS/nixpkgs/pull/183099#discussion_r933226708)
|
||||||
|
@ -14,3 +16,4 @@
|
||||||
#pynitrokey
|
#pynitrokey
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in a new issue