Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.25 KB

README.md

File metadata and controls

39 lines (29 loc) · 1.25 KB

Personal NixOS Configuration

This repository contains all of the configuration for my computers running NixOS.

Test VM

A test virtual machine can be built to test the configuration. Simply run nix build .#nixosConfigurations.testvm.config.system.build.vm.

Installation guide

  • Boot the NixOS live image
  • Load the necessary kernel modules using modprobe (dm-cache, dm-raid...)
  • Partition the disk
  • Mount root at /mnt and esp at /mnt/boot
  • Clone this repo
  • Run nixos-generate-config and adjust host config according to the generated files
  • Run nix-shell -p nixUnstable --run "nix --experimental-features 'nix-command flakes' build .#nixosConfigurations.${hostname}.config.system.build.toplevel"
  • Run nixos-install --system ./result

Updating

To update a running system, use nixos-rebuild --flake .#${hostname}.

Credit

Parts of this project have been copied from the project "Nix PIE" maintained by the CRI of EPITA. You can find the source of this project on their Gitlab instance.

The following files were partially or fully copied :

  • flake.nix
  • lib/make-squashfs.nix
  • modules/system/boot/netboot.nix
  • pkgs/default.nix
  • pkgs/overlays.nix
  • pkgs/overrides.nix