Skip to content

personal NixOS configuration - mirror of selfhosted gitlab

License

Notifications You must be signed in to change notification settings

nfroger/nixconf

Repository files navigation

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

About

personal NixOS configuration - mirror of selfhosted gitlab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages