nix build .#nixosConfiguration.hostname.config.system.build.toplevel
sudo nixos-install --no-root-passwd --root /mnt --flake git+https://git.clerie.de/clerie/nixfiles.git#hydra-2
nixos-rebuild build-vm -I nixos-config=vm.nix -I nixpkgs=$PWD
nix build -f "<nixpkgs/nixos>" config.system.build.sdImage -I nixos-config=configuration.nix -I nixpkgs=channel:nixos-unstable --system aarch64-linux
imports = [ (modulesPath + "/virtualisation/xen-domU.nix") ];
sudo nixos-generate-config --show-hardware-config
sudo nixos-option system.build
nix-build -E "with import <nixpkgs> {}; callPackage ./. {}"
nix-channel --update nixos
Im Normalfall reicht das hier:
sudo reboot sudo nix-collect-garbage -d
Alle Generationen die älter als 14 Tage sind entfernen:
sudo nix-env --delete-generations 14d
Ungenutze Pakete entfernen:
sudo nix-store --gc