Skip to content

stefankeidel/nix-hosts

Repository files navigation

nix-hosts

Ok, third time's the charm. Start fresh with nix host config

After two mildly successful attempts at nixifying my system config at

  • v1 which I'd used for ages
  • v2 which lifted me to the next level, but brought along a lot of cruft I don't understand or need

I decided to start fresh using numtide/blueprint and a blank slate, copy & pasting only what I really need and understand.

Let's see how it goes.

Building & Switching Darwin

nix run nix-darwin -- build --flake .#lichtblick
HOME=/var/root sudo darwin-rebuild switch --keep-going -v --flake ~/code/nix-hosts#lichtblick

Running NixOS VMs

Manual boot

  • Define your NixOS host under hosts/<name> (see hosts/nextcloud/configuration.nix for layout).
  • Build the VM derivation for a host:
nix build .#nixosConfigurations.vm-mini.config.system.build.vfkit-vz-runner
  • Boot the resulting VM script (created under ./result/bin):
./result/bin/vfkit-nextcloud

About

My nix hosts config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •