added comments

This commit is contained in:
Gerg-L 2023-08-06 00:18:14 -04:00
parent 4204edfe43
commit e87155faa2

View file

@ -13,15 +13,18 @@ in {
nix.nixPath = lib.mapAttrsToList (x: _: "${x}=flake:${x}") flakes; nix.nixPath = lib.mapAttrsToList (x: _: "${x}=flake:${x}") flakes;
nix.registry = lib.mapAttrs (_: flake: {inherit flake;}) flakes; nix.registry = lib.mapAttrs (_: flake: {inherit flake;}) flakes;
# #
# Ignore global registry # Use nix directly from master
# #
nix.settings.flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}''; nix.package = inputs.nix.packages.${pkgs.system}.default;
# #
# Other nix settings # Other nix settings
# #
nix = { nix.settings = {
package = inputs.nix.packages.${pkgs.system}.default; #
settings = { # Ignore global registry
#
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
experimental-features = [ experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
@ -29,7 +32,9 @@ in {
]; ];
auto-optimise-store = true; auto-optimise-store = true;
warn-dirty = false; warn-dirty = false;
#use for testing #
# Use for testing
#
#allow-import-from-derivation = false; #allow-import-from-derivation = false;
trusted-users = [ trusted-users = [
"root" "root"
@ -38,9 +43,9 @@ in {
allowed-users = []; allowed-users = [];
use-xdg-base-directories = true; use-xdg-base-directories = true;
}; };
}; #
# Fix for use-xdg-base-directories https://github.com/NixOS/nixpkgs/pull/241518
#fix for use-xdg-base-directories #
environment.profiles = [ environment.profiles = [
"\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile" "\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile"
]; ];