Skip to content

MarkusZoppelt/nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix(OS) config files

Setup

First, install nix via Determinate Nix Installer.

On macOS, install nix-darwin

nix run nix-darwin -- switch --flake .

Build system from flakes:

On Darwin:

darwin-rebuild switch --flake .#<host>

On NixOS:

cp /etc/nixos/hardware-configuration.nix ./hosts/<host>/hardware-configuration.nix
sudo nixos-rebuild switch --flake .#<host>

On Linux:

nix run nixpkgs#home-manager -- switch --flake .#Linux