2022-07-31 11:03:59 +02:00
|
|
|
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
{
|
|
|
|
system = "x86_64-linux";
|
|
|
|
name = "recovery-usb";
|
|
|
|
module = {
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
roots,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
(roots.nixos + "/modules")
|
|
|
|
inputs.home-manager.nixosModules.home-manager
|
|
|
|
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
|
|
|
|
];
|
|
|
|
home-manager.users."main" = {...}: {
|
|
|
|
imports = [(roots.home-manager + "/modules")];
|
|
|
|
|
|
|
|
magic_rb = {
|
|
|
|
programs = {
|
|
|
|
bash.enable = true;
|
|
|
|
ssh.enable = true;
|
2023-04-03 17:45:43 +02:00
|
|
|
gpg.enable = true;
|
|
|
|
gpg.pinentryFlavor = "curses";
|
2022-07-31 11:03:59 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-04-03 17:45:43 +02:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
openssl
|
|
|
|
pcsclite
|
|
|
|
paperkey
|
|
|
|
monkeysphere
|
|
|
|
ssss
|
|
|
|
xxd
|
|
|
|
usbutils
|
|
|
|
pciutils
|
|
|
|
];
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
home.stateVersion = "20.09";
|
|
|
|
};
|
2023-04-03 17:45:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Enable PCSCD for smart card stuff
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
2022-07-31 11:03:59 +02:00
|
|
|
magic_rb = {
|
|
|
|
hardware.recoveryUsb = true;
|
|
|
|
flakes.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|