notiz:nixos-cheats
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
NixOS cheats
Konfiguration mit eigenen Paketquellen für eine VM bauen
nixos-rebuild build-vm -I nixos-config=vm.nix -I nixpkgs=$PWD
SD-Karten Image für ARM bauen
nix build -f "<nixpkgs/nixos>" config.system.build.sdImage -I nixos-config=configuration.nix -I nixpkgs=channel:nixos-unstable --system aarch64-linux
NixOS in Xen
imports = [ (modulesPath + "/virtualisation/xen-domU.nix") ];
NixOS hardware-configuration.nix
sudo nixos-generate-config --show-hardware-config
Deklaration einer Option finden
sudo nixos-option system.build
Paket bauen
nix-build -E "with import <nixpkgs> {}; callPackage ./. {}"
notiz/nixos-cheats.1611426184.txt.gz · Zuletzt geändert: von clerie
