From d7428c1290e83fc9ad242c0759ddf5d22e6bc5dd Mon Sep 17 00:00:00 2001 From: drduh Date: Sat, 12 Apr 2025 10:22:46 -0700 Subject: [PATCH] organize nixos files --- README.md | 10 ++++------ diceware-vt.patch => nix/diceware-vt.patch | 0 flake.lock => nix/flake.lock | 0 flake.nix => nix/flake.nix | 0 4 files changed, 4 insertions(+), 6 deletions(-) rename diceware-vt.patch => nix/diceware-vt.patch (100%) rename flake.lock => nix/flake.lock (100%) rename flake.nix => nix/flake.nix (100%) diff --git a/README.md b/README.md index 1d13323..88d5bba 100644 --- a/README.md +++ b/README.md @@ -204,9 +204,7 @@ brew install \ > [!NOTE] > An additional Python package dependency may need to be installed to use [`ykman`](https://support.yubico.com/support/solutions/articles/15000012643-yubikey-manager-cli-ykman-user-guide) - `pip install yubikey-manager` -Or - -Install [MacPorts](https://www.macports.org/install.php) and the following packages: +Or using [MacPorts](https://www.macports.org/install.php), install the following packages: ```console sudo port install gnupg2 yubikey-manager pinentry wget @@ -237,7 +235,7 @@ Build the image: nix build --experimental-features "nix-command flakes" .#nixosConfigurations.yubikeyLive.x86_64-linux.config.system.build.isoImage ``` -Copy it to a USB drive: +Copy to USB drive: ```console sudo cp -v result/iso/yubikeyLive.iso /dev/sdc ; sync @@ -245,8 +243,8 @@ sudo cp -v result/iso/yubikeyLive.iso /dev/sdc ; sync Skip steps to create a temporary working directory and a hardened configuration, as they are already part of the image. -If you want to test your build before copying it into a USB stick, you can try it out on your machine using a tool like QEMU. -Please keep in mind that a virtualized environment does not provide the same amount of security as an ephemeral system (see *Prepare environment* above). +Test builds using virtualization tools like QEMU. Keep in mind a virtualized environment does not provide the same amount of security as an ephemeral system (see *Prepare environment* above). + Here is an example QEMU invocation after placing `yubikeyLive` in `result/iso` using the above `nix build` command: ```console diff --git a/diceware-vt.patch b/nix/diceware-vt.patch similarity index 100% rename from diceware-vt.patch rename to nix/diceware-vt.patch diff --git a/flake.lock b/nix/flake.lock similarity index 100% rename from flake.lock rename to nix/flake.lock diff --git a/flake.nix b/nix/flake.nix similarity index 100% rename from flake.nix rename to nix/flake.nix