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 = [ # Optionally import modules for non-essential extras
./bluray.nix imports =
./dvd.nix lib.optionals settings.hardware.yubikey.enable [ ./yubikey.nix ]
./yubikey.nix ++ lib.optionals settings.dvd [ ./dvd.nix ]
./wireguard.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 services.pcscd.enable = true; # enable support for smart cards
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [ pcsclite ]
# Yubikey stuff # Yubico authentictor app for managing accounts
yubioath-flutter # 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 # CLI tool for ykman
yubikey-manager-qt # GUI tool for ykman yubikey-manager-qt # GUI tool for ykman
pcsclite ]);
];
} }

View File

@ -1,7 +1,23 @@
{ {
hardware = { hardware = {
# support for GPUs
amdgpu = true; amdgpu = true;
intelgpu = false; intelgpu = false;
nvidiagpu = 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
}; };
} }