Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1012 Bytes

README.md

File metadata and controls

52 lines (33 loc) · 1012 Bytes

songpola's NixOS Config

Setup

nixos-anywhere

Set password (using passwd) for root first

nix run github:nix-community/nixos-anywhere -- --flake github:songpola/nixos-config#<hostname> root@<host>

Usage

nh

nh os switch

nixos-rebuild

sudo nixos-rebuild switch --flake github:songpola/nixos-config

Deploy to Remote Host

  • Add --build-host <user>@<host> flag to build on remote host
  • Add --use-remote-sudo flag if use non-root user
  • Add --use-substitutes flag to speed up if the remote host is faster
nixos-rebuild --flake github:songpola/nixos-config --target-host <user>@<host> switch

Notes

pnpm

Install the LTS version of Node.js

pnpm env use --global lts

References