Skip to content

mystreamer/provision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

provision

This repo is intended for managing my flock of computers through Nix.

macOS VM (devmac)

  1. Ensure that CommandLineTools are installed.
  2. Install nix (the non-determinate systems distribution)
  3. Clone this repo and cd into it.
  4. After cloning the first time on your machine, run:nix run nix-darwin -- switch --flake ".#devmac" If you have made changes to flake.nix and need a rebuild, use:
nix flake update
darwin-rebuild switch --flake .#devmac

nixOS VM (devnix)

Initial steps

After starting the nixOS installer through an ISO found here. Choose the version with the graphical installer.

Note: This keymap is not the macOS flavour of the Swiss layout, but rather the classic Swiss layout, cf. here. the # can be accessed with altGR + shift + 3. Square brackets with altGR + ü/¨ and curlies with altGR + ä / $

Then cd /etc/nixos/configuration.nix. Add this to the file:

nix = {
 package = pkgs.nix;
 settings.experimental-features = [ "nix-command" "flakes" ];
};

(for vim as the editor just launch nix-shell -p vim)

And then rebuild your nix with sudo nixos-rebuild switch


  1. Navigate to /home/nixos
  2. nix-shell -p git
  3. Clone this repo: git clone https://github.com/mystreamer/provision.git
  4. Navigate to this directory.
  5. Set system.stateVersion in provision/machines/devnix/default.nix ot the version in /etc/nixos/configuration.nix
  6. Run: nix flake update
  7. Then sudo nixos-rebuild switch --flake ".#devnix"

About

Setup a fresh mac automatically.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published