mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
nix.channel.enable = false
This commit is contained in:
parent
137fde5248
commit
b5a7c36241
1 changed files with 53 additions and 47 deletions
|
|
@ -5,32 +5,32 @@
|
||||||
config,
|
config,
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
nix = {
|
||||||
|
#
|
||||||
|
# Disable usage of channels
|
||||||
|
#
|
||||||
|
channel.enable = false;
|
||||||
#
|
#
|
||||||
# Flake registry and $NIX_PATH pinning
|
# Flake registry and $NIX_PATH pinning
|
||||||
#
|
#
|
||||||
nix.registry = lib.pipe inputs [
|
registry = lib.pipe inputs [
|
||||||
(lib.filterAttrs (_: lib.isType "flake"))
|
(lib.filterAttrs (_: lib.isType "flake"))
|
||||||
(lib.mapAttrs (_: flake: { inherit flake; }))
|
(lib.mapAttrs (_: flake: { inherit flake; }))
|
||||||
(x: x // { nixpkgs.flake = inputs.unstable; })
|
(x: x // { nixpkgs.flake = inputs.unstable; })
|
||||||
];
|
];
|
||||||
|
nixPath = [ "/etc/nix/path" ];
|
||||||
environment.etc = lib.mapAttrs' (name: value: {
|
|
||||||
name = "nix/path/${name}";
|
|
||||||
value.source = value.flake;
|
|
||||||
}) config.nix.registry;
|
|
||||||
nix.nixPath = [ "/etc/nix/path" ];
|
|
||||||
#
|
#
|
||||||
# Ignore global registry
|
# Ignore global registry
|
||||||
#
|
#
|
||||||
nix.settings.flake-registry = "";
|
settings.flake-registry = "";
|
||||||
#
|
#
|
||||||
# Use nix directly from master
|
# Use nix directly from master
|
||||||
#
|
#
|
||||||
nix.package = nix.packages.default;
|
package = nix.packages.default;
|
||||||
#
|
#
|
||||||
# Other nix settings
|
# Other nix settings
|
||||||
#
|
#
|
||||||
nix.settings = {
|
settings = {
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"auto-allocate-uids"
|
"auto-allocate-uids"
|
||||||
"ca-derivations"
|
"ca-derivations"
|
||||||
|
|
@ -57,4 +57,10 @@
|
||||||
use-xdg-base-directories = true;
|
use-xdg-base-directories = true;
|
||||||
auto-allocate-uids = true;
|
auto-allocate-uids = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.etc = lib.mapAttrs' (name: value: {
|
||||||
|
name = "nix/path/${name}";
|
||||||
|
value.source = value.flake;
|
||||||
|
}) config.nix.registry;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue