1
0
Fork 0
prathams-nixos/README.md

924 B

README

Continuous Build

  1. $hostName is the hostname of a host defined in the nixosHosts set, inside the flake.nix file
  2. $(whoami) should evaluate to the username of a valid user, as defined in the nixosHosts set, inside the flake.nix file

Install NixOS

sudo ./install.sh $targetDrive $hostName

Build a NixOS configuration

nix build .#machines."$hostName"

Standalone installation of home-manager

nix run home-manager/master -- switch --flake .

Build a standalone home-manager configuration

nix build .#homeOf."$(uname -m)-$(uname -s | awk '{print tolower($0)}')"."$(whoami)"

Create a NixOS ISO

nix build .#isos."$(uname -m)"