diff --git a/modules/home/base/nix/default.nix b/modules/home/base/nix/default.nix index c9fec6b..cabaffe 100644 --- a/modules/home/base/nix/default.nix +++ b/modules/home/base/nix/default.nix @@ -1,9 +1,17 @@ -{ pkgs, config, ... }: { + pkgs, + inputs, + config, + ... +}: { config = { nix = { package = pkgs.lix; + # Pin system to flake nixpkgs version. + # i.e. for use in pkgs = import {}. + nixPath = ["nixpkgs=${inputs.nixpkgs}"]; + settings = { trusted-users = [ "root" @@ -40,7 +48,8 @@ nixpkgs.config.import = "${config.xdg.configHome}/nixpkgs/config.nix"; - xdg.configFile."nixpkgs/config.nix".text = # nix + xdg.configFile."nixpkgs/config.nix".text = + # nix '' { allowUnfree = true;