feat(home): Pin <nixpkgs> to flake nixpkgs
This commit is contained in:
parent
5fc1d3a86f
commit
04d9c0b66e
1 changed files with 11 additions and 2 deletions
|
@ -1,9 +1,17 @@
|
||||||
{ pkgs, config, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
config = {
|
config = {
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.lix;
|
package = pkgs.lix;
|
||||||
|
|
||||||
|
# Pin system <nixpkgs> to flake nixpkgs version.
|
||||||
|
# i.e. for use in pkgs = import <nixpkgs> {}.
|
||||||
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
trusted-users = [
|
trusted-users = [
|
||||||
"root"
|
"root"
|
||||||
|
@ -40,7 +48,8 @@
|
||||||
|
|
||||||
nixpkgs.config.import = "${config.xdg.configHome}/nixpkgs/config.nix";
|
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;
|
allowUnfree = true;
|
||||||
|
|
Loading…
Reference in a new issue