Add key management tools to live ISO

This commit is contained in:
Vili Sinervä 2024-10-11 12:53:45 +03:00
parent ed89e79ca7
commit 7023b38351
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996

View file

@ -55,13 +55,31 @@ in
../base.nix
];
environment.systemPackages = [
pkgs.cryptsetup
environment.systemPackages =
(with pkgs; [
cryptsetup
onlykey
onlykey-cli
onlykey-agent
])
++ [
create-partitions
create-filesystems
prep-install
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-curses;
};
services.udev.extraRules = ''
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="60fc", MODE:="0666"
'';
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
#Many installs will need this, and it won't hurt either way