feat(home): Pin <nixpkgs> to flake nixpkgs

This commit is contained in:
punkfairie 2024-11-29 20:31:15 -08:00
parent 5fc1d3a86f
commit 04d9c0b66e
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -1,9 +1,17 @@
{ pkgs, config, ... }:
{
pkgs,
inputs,
config,
...
}: {
config = {
nix = {
package = pkgs.lix;
# Pin system <nixpkgs> to flake nixpkgs version.
# i.e. for use in pkgs = import <nixpkgs> {}.
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;