added extra to settings

This commit is contained in:
Sven Vogel 2023-12-15 18:49:12 +01:00
parent 88b1681dcb
commit eca53b8eb5
3 changed files with 34 additions and 13 deletions

View File

@ -1,8 +1,12 @@
{ lib, ... }:
let
settings = import ./../settings.nix;
in
{
imports = [
./bluray.nix
./dvd.nix
./yubikey.nix
./wireguard.nix
];
# Optionally import modules for non-essential extras
imports =
lib.optionals settings.hardware.yubikey.enable [ ./yubikey.nix ]
++ lib.optionals settings.dvd [ ./dvd.nix ]
++ lib.optionals settings.bluray [ ./bluray.nix ]
++ lib.optionals settings.networking.wireguard [ ./wireguard.nix ];
}

View File

@ -2,11 +2,12 @@
services.pcscd.enable = true; # enable support for smart cards
environment.systemPackages = with pkgs; [
# Yubikey stuff
yubioath-flutter # Yubico authentictor app for managing accounts
yubikey-manager # CLI tool for ykman
yubikey-manager-qt # GUI tool for ykman
pcsclite
];
environment.systemPackages = with pkgs; [ pcsclite ]
# Yubico authentictor app for managing accounts
++ (lib.optionals settings.hardware.yubikey.authenticator [ yubioath-flutter ])
# ykman CLI and Qt-GUI
++ (lib.optionals settings.hardware.yubikey.ykman [
yubikey-manager # CLI tool for ykman
yubikey-manager-qt # GUI tool for ykman
]);
}

View File

@ -1,7 +1,23 @@
{
hardware = {
# support for GPUs
amdgpu = true;
intelgpu = false;
nvidiagpu = false;
# support for yubikey and additional software
yubikey = {
enable = true;
# additional software
ykman = false;
authenticator = true; # flutter yubico authenticator
};
};
dvd = true; # enable DVD decryption + ripping via Handbrake
bluray = true; # enable Bluray decryption (requires additional setup)
networking = {
wireguard = true; # enable wireguard protocol
};
}