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 = {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue