add NIX_PATH / nixPath compat for flakes

This commit is contained in:
Sean Buckley 2021-06-28 22:56:15 -04:00
parent 8d5f46c747
commit 9dd30b2cdd

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, modulesPath, ... }:
{
time.timeZone = "US/Eastern";
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" ];
@ -29,6 +29,7 @@
nix = {
daemonNiceLevel = 19;
daemonIONiceLevel = 7;
nixPath = [ "nixpkgs=${modulesPath}/../.." ];
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes