Skip to content

Instantly share code, notes, and snippets.

@con-f-use
Last active September 26, 2025 21:43
Show Gist options
  • Save con-f-use/5ad3a605e45aa2527eb9b2f85ccfa043 to your computer and use it in GitHub Desktop.
Save con-f-use/5ad3a605e45aa2527eb9b2f85ccfa043 to your computer and use it in GitHub Desktop.
Random Nix Links
@con-f-use
Copy link
Author

con-f-use commented Sep 16, 2024

Configuration options for nix:

echo '
allowed-users = @wheel
auto-optimise-store = true
experimental-features = nix-command flakes repl-flake
flake-registry = /etc/nix/registry.json
max-jobs = auto
nix-path = nixpkgs=/etc/nixpkgs
require-sigs = true
sandbox = true
sandbox-fallback = false
trusted-users = root @wheel
use-xdg-base-directories = true
builders-use-substitutes = true' | sudo tee -a /etc/nix.conf

cp -b /etc/nix/registry.json /etc/nix/registry.json~
echo '{
  "version": 2,
  "flakes": [ { 
      "from": { "type": "indirect", "id": "nixpkgs" },
      "to": { "type": "path", "path": "/etc/nixpkgs" }
    } ]
}' | sudo tee /etc/nix/registry.json

sudo systemctl restart nix-daemon.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment