Skip to content

usami/nixos-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create Bootable USB Drive

  1. Download the lates NixOS image from here
  2. Insert USB drive
  3. Write the image to the USB drive:
    # dd if=path-to-image of=/dev/sdb # specify whole device, not partition
    

Install from the Bootable USB

  1. Disable Secure Boot in BIOS
  2. Change Graphics to Discrete Graphics if using Hybrid Graphics (Config -> Display -> Graphics Device)
  3. Boot from the USB
  4. Insert ethernet cable

    For easy setup, the following command does install in one script.

    $ sudo su root
    # curl -o start https://raw.githubusercontent.com/usami/nixos-setup/master/start
    # chmod +x start
    # ./start
    
  5. Create partitions ref
    $ sudo su root
    # curl -o partition https://raw.githubusercontent.com/usami/nixos-setup/master/partition
    # chmod +x partition
    # ./partition /dev/nvme0n1
    
  6. Insert yubikey
  7. Setup crypted volume
    # curl -o setup https://raw.githubusercontent.com/usami/nixos-setup/master/setup
    # chmod +x setup
    # ./setup /dev/nvme0n1p1 /dev/nvme0n1p2 /dev/nvme0n1p3
    
  8. Get minimal setup configuration
    # cd /mnt/etc/nixos
    # rm configuration.nix
    # curl -o configuration.nix https://raw.githubusercontent.com/usami/nixos-setup/master/configuration.nix
    
  9. Install and reboot
    # nixos-install
    # reboot
    

Setup

For easy setup, finish-setup command does all the following steps.

  1. Login as user yu (initial password: asdf)
  2. Add new device
    $ keybase login
    
  3. Clone nixos config git
    $ git clone keybase://private/yusmi/nixos
    
  4. Clone dotconfig git
    $ git clone keybase://private/yusmi/dotconfig
    
  5. Create symbolic links
    $ cp /etc/nixos/hardware-configuration.nix /home/yu/nixos/
    $ sudo rm -rf /etc/nixos
    $ sudo ln -s /home/yu/nixos /etc/nixos
    $ rm -rf .config
    $ ln -s dotconfig .config
    
  6. Rebuild
    $ sudo nixos-rebuild switch
    

About

My NixOS setup instructions + scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published