mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
thinkman: enable nitrokey
This commit is contained in:
parent
9514033f26
commit
dcb997cdf7
4 changed files with 33 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./hardware
|
||||||
./services
|
./services
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
8
modules/hardware/default.nix
Normal file
8
modules/hardware/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Hardware-related modules
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./nitrokey
|
||||||
|
];
|
||||||
|
}
|
20
modules/hardware/nitrokey/default.nix
Normal file
20
modules/hardware/nitrokey/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.hardware.nitrokey;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.my.hardware.nitrokey = {
|
||||||
|
enable = lib.mkEnableOption "pipewire configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
|
||||||
|
programs = {
|
||||||
|
ssh.startAgent = false;
|
||||||
|
gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,4 +5,8 @@
|
||||||
|
|
||||||
# Special power management settings for ThinkPads
|
# Special power management settings for ThinkPads
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
|
|
||||||
|
my.hardware = {
|
||||||
|
nitrokey.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue