Git Product home page Git Product logo

nixos-config's Introduction

nixos-config

Installation

  • Load repo onto bootable NixOS installation media
    • Can make secure boot compatible media by first flashing NixOS installer ISO then copying bootx64.efi, grubx64.efi, and mmx64.efi from a signed ISO (e.g. Fedora installer) into EFI/boot, replacing any existing files
  • Comment out Lanzaboote section and enable systemd-boot
  • Turn off secure boot and boot into installation media
  • Run ls /dev/disk/by-id and check the device name of the target storage (e.g. nvme-HFS002TEJ9X101N_AJCCN53941470CM51)
    • Edit the device field in disko-config.nix and the target partition (append -part2 to the device name) under boot.initrd.postDeviceCommands in configuration.nix appropriately
  • Run sudo lshw -c display and change the bus IDs for Nvidia Prime in configuration.nix
    • Remove leading zeroes, convert from hexadecimal to decimal, and replace periods with colons
    • Only last three numbers needed
  • Run sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko [absolute path to repo]/disko-config.nix
  • Use mkpasswd -m yescrypt > [user].yescrypt to generate hashed password files for user and root
    • Place them in /mnt/persistent/passwd
  • Run sudo nixos-install --flake [absolute path to repo]#FusionBolt
  • Reboot into NixOS
  • Run sudo sbctl create-keys
  • Disable systemd-boot and uncomment the Lanzaboote section, then run nix-switch and verify with sudo sbctl verify
  • Reboot and enable secure boot in setup mode
  • Run sudo sbctl enroll-keys --microsoft
  • Reboot and verify secure boot status with bootctl status

nixos-config's People

Contributors

kari-naga avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.