From a685e7b925467ea1704e0307e0226f98a6b6f9d0 Mon Sep 17 00:00:00 2001 From: NullBite Date: Sun, 21 Jan 2024 16:44:13 +0100 Subject: [PATCH] Add flake nixpkgs to NIX_PATH so comma uses it --- system/fragments/base.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/system/fragments/base.nix b/system/fragments/base.nix index e540cb6..e92f6cb 100644 --- a/system/fragments/base.nix +++ b/system/fragments/base.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, ...}: +{ config, lib, pkgs, options, inputs, ...}@args: { # locale settings i18n = { @@ -49,6 +49,12 @@ pciutils ]; + # this makes comma and legacy nix utils use the flake nixpkgs for ABI + # compatibility becasue once `, vkcube` couldn't find the correct opengl + # driver or something (also it reduces the download size of temporary shell + # closures) + nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ] ++ options.nix.nixPath.default; + programs.ssh.enableAskPassword = false; programs.gnupg.agent = {