lock nix-path and local flake registry to sytem nixpkgs

This commit is contained in:
2022-12-09 05:25:07 +01:00
parent 3720b9d20d
commit 6fad2c7854
2 changed files with 13 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
imports = [
@@ -29,6 +29,17 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
/* This makes commandline tools like
** nix run nixpkgs#hello
** and nix-shell -p hello
** use the same channel the system
** was built with
*/
nix.registry = {
nixpkgs.flake = inputs.nixpkgs;
};
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
environment.systemPackages = with pkgs; [
file
git