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 falseTo disable a specific build cache, edit the substituters in /etc/nix/nix.conf.
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