Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.4 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.4 KB

famedly-openpgp-scripts (short fos)

These are scripts we use to provision hardware keys with OpenPGP certificates for our team members.

Dependencies

Building an ISO

You can use the Nix Flake in this repo to build an ISO which has all of the scripts, dependencies for working with PGP and YubiKeys, as well as DrDuh's Yubikey Guide available, and all networking disabled.

All you need is to have Nix installed and either enable flakes in your nix config, or add --experimental-features "nix-command flakes" to all nix commands.

Then you can run the following command to build the ISO:

nix build .#nixosConfigurations.fos-live.config.system.build.isoImage

The resulting ISO can be found in ./result/iso/fos.iso

Building a VM

For testing purposes, you can also build a VM with the configuration:

On NixOS:

nixos-rebuild build-vm --flake .#fos-live

On Non-NixOS:

nix run 'nixpkgs#nixos-rebuild' -- build-vm --flake .#fos-live

The VM can than be run from ./result/bin/run-nixos-vm