linux nix

Definition

NixOS

NixOS is a free and open source Linux distribution based on the Nix package manager. NixOS uses an immutable design and an atomic update model. Its use of a declarative configuration system allows reproducibility and portability.

Issues

Disable Build Caches for Build

To disable all build caches when switching:

--option build-use-substitutes false

To disable a specific build cache, edit the substituters in /etc/nix/nix.conf.

1

Vulkan Packages

vulkan-headers
vulkan-tools
vulkan-loader

Failed to acquire Lock

Symptom:

> sudo nixos-rebuild switch --flake .#vega
building the system configuration...
Failed to start transient service unit: Unit nixos-rebuild-switch-to-configuration.service was already loaded or has a fragment file.
Could not acquire lock
warning: error(s) occurred while switching to the new configuration

Fix 2:

sudo systemctl stop nixos-rebuild-switch-to-configuration.service

Footnotes

  1. I seem to be stuck because a binary cache is down - Help - NixOS Discourse

  2. I keep getting a systemd service rebuild error after rebuild : r/NixOS