How-to?
Create a usb key
Section titled “Create a usb key”To create a crypted and portable NixOS system on a usb key:
-
Create a minimal NixOS system
Terminal window cd /etc/nixos# Nix-shell with required tools + rootsudo just create-key-shell# Launch with the key name + peripheral# -> IMPORTANT: all data in the peripheral will be lose# -> This script will prompt the luks passwordjust create-key-on my-key /dev/sdb# Quit the nix-shellexit -
Declare the new host
usr/config.yaml hosts:static:- hostname: "my-key"name: "My portable system"profile: "portable"users: [ "darkone", "gponcon" ]Terminal window # Generate, fix, check...just clean -
Apply the configuration
Launch the usb key system with any machine (click F12 at startup, then choose the usb key). The minimal installation have a special
nixuser used for maintenance.Terminal window # Network check: "my-key" must be accessibleping my-key# Register and install the new hostjust install my-key
Contribute
Section titled “Contribute”Until more details are available, here’s what you can do:
- Share your thoughts or advice and support this project.
- Suggest code or documentation fixes.
- Fork this project and try to use it.