dedicated-settings-file #3
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
]);
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
16
settings.nix
16
settings.nix
|
@ -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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue