nixos/core: disable channels and set proper nix-paths
This commit is contained in:
parent
19c4cb4c2f
commit
0b7be3144c
1 changed files with 11 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running 'nixos-help').
|
# and in the NixOS manual (accessible by running 'nixos-help').
|
||||||
|
|
||||||
{ config, pkgs, lib, ... }:
|
{ inputs, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
/*
|
/*
|
||||||
|
@ -47,7 +47,16 @@ in
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.package = wrappedNix;
|
nix = {
|
||||||
|
package = wrappedNix;
|
||||||
|
channel.enable = false;
|
||||||
|
settings.nix-path = [
|
||||||
|
"nixpkgs=${pkgs.selfExpr { useConfig = false; }}"
|
||||||
|
"systemNixpkgs=${pkgs.selfExpr { useConfig = true; name = "systemNixpkgs-self"; }}"
|
||||||
|
# don't garbage collect the nixpkgs input
|
||||||
|
"inputsNixpkgs=${inputs.nixpkgs}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue