From 04d9c0b66edff832d7dab0c94c7c1d049f98e053 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Fri, 29 Nov 2024 20:31:15 -0800 Subject: [PATCH] feat(home): Pin to flake nixpkgs --- modules/home/base/nix/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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;