mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
added comments
This commit is contained in:
parent
4204edfe43
commit
e87155faa2
1 changed files with 28 additions and 23 deletions
|
|
@ -13,15 +13,18 @@ in {
|
|||
nix.nixPath = lib.mapAttrsToList (x: _: "${x}=flake:${x}") 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
|
||||
#
|
||||
nix = {
|
||||
package = inputs.nix.packages.${pkgs.system}.default;
|
||||
settings = {
|
||||
nix.settings = {
|
||||
#
|
||||
# Ignore global registry
|
||||
#
|
||||
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
|
||||
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
|
|
@ -29,7 +32,9 @@ in {
|
|||
];
|
||||
auto-optimise-store = true;
|
||||
warn-dirty = false;
|
||||
#use for testing
|
||||
#
|
||||
# Use for testing
|
||||
#
|
||||
#allow-import-from-derivation = false;
|
||||
trusted-users = [
|
||||
"root"
|
||||
|
|
@ -38,9 +43,9 @@ in {
|
|||
allowed-users = [];
|
||||
use-xdg-base-directories = true;
|
||||
};
|
||||
};
|
||||
|
||||
#fix for use-xdg-base-directories
|
||||
#
|
||||
# Fix for use-xdg-base-directories https://github.com/NixOS/nixpkgs/pull/241518
|
||||
#
|
||||
environment.profiles = [
|
||||
"\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue