### Install Nix with Determinate Systems Installer (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/macbook/readme.md Downloads and executes the Determinate Systems Nix installer script directly from the web, performing a non-interactive installation of the Nix package manager. ```shell curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm ``` -------------------------------- ### Install Xcode Command Line Tools (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/macbook/readme.md Installs the essential command-line development tools required for macOS development, which are often prerequisites for other package managers and build processes. ```shell xcode-select --install ``` -------------------------------- ### Verify Secure Boot Status (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Uses `sbctl verify` to check the signing status of boot components. This command helps confirm whether the expected files are signed after the installation and key setup. ```shell sbctl verify ``` -------------------------------- ### Install NixOS (Second Run) (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Runs the NixOS installation again after the secure boot keys have been created and moved. This time, Lanzaboote should be able to find the keys and configure secure boot correctly. ```shell nixos-install --no-root-password --flake github:stepbrobd/dotfiles#framework --option extra-substituters https://cache.garnix.io ``` -------------------------------- ### Run Standalone Disko (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Executes the Disko tool directly using `nix run` with a specific configuration file. This is an alternative way to use Disko for disk setup, typically used outside of the main flake installation process. ```shell nix run github:nix-community/disko -- --mode disko ./disko.nix ``` -------------------------------- ### Create and Move Secure Boot Keys (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Generates secure boot keys using `sbctl` and then moves the generated key directory to the mount point of the new system's `/etc` directory. This is a prerequisite for setting up secure boot with Lanzaboote. ```shell sbctl create-keys && mv /etc/secureboot /mnt/etc ``` -------------------------------- ### Format Disks using Disko Script (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Executes the Disko script defined in the Nix flake to format and partition the disks according to the configuration. This prepares the storage for the NixOS installation. ```shell bash $(nix --extra-experimental-features "nix-command flakes" --accept-flake-config build --no-link --print-out-paths github:stepbrobd/dotfiles#nixosConfigurations.framework.config.system.build.diskoScript) ``` -------------------------------- ### Remove Default Nix Configuration (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/macbook/readme.md Deletes the default Nix configuration file created by the installer, typically done to replace it with a custom configuration managed by dotfiles or other means. ```shell sudo rm /etc/nix/nix.conf ``` -------------------------------- ### Activate Nix-Darwin System Configuration (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/macbook/readme.md Uses the nix-darwin tool to apply the system configuration defined in the specified flake attribute (#macbook) from the dotfiles repository, enabling experimental features for flakes and the nix command. ```shell nix --extra-experimental-features "nix-command flakes" run github:lnl7/nix-darwin -- switch --flake github:stepbrobd/dotfiles#macbook ``` -------------------------------- ### Enroll Secure Boot Keys (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Enrolls the generated secure boot keys into the system's UEFI firmware, including Microsoft keys for compatibility. This step is performed after booting into the newly installed system. ```shell sbctl enroll-keys --microsoft ``` -------------------------------- ### Check Boot Status (Shell) Source: https://github.com/stepbrobd/dotfiles/blob/master/hosts/laptop/framework/readme.md Displays the current boot status using `bootctl`. This command can be used to verify if secure boot is active and correctly configured after enrolling the keys. ```shell bootctl status ``` -------------------------------- ### Initializing/Creating Project with Nix Flake Template Source: https://github.com/stepbrobd/dotfiles/blob/master/readme.md This command uses the `nix flake` tool to initialize or create a new project directory based on one of the provided templates (Go, Python, Rust, or Typst) hosted in the dotfiles repository. ```shell nix flake [init|new] -t github:stepbrobd/dotfiles#{go|python|rust|typst} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.