From 4e4588a7438ca9c61197d4645a65e820470101d4 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Fri, 11 Feb 2022 19:40:34 +0300 Subject: [PATCH] fix nix config --- profiles/nix/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profiles/nix/default.nix b/profiles/nix/default.nix index 0f7407d..1437f95 100644 --- a/profiles/nix/default.nix +++ b/profiles/nix/default.nix @@ -1,4 +1,5 @@ -{ config, lib, pkgs, inputs, system, ... }: { +{ config, lib, pkgs, inputs, system, ... }: +with config.deviceSpecific; { nix = rec { nixPath = lib.mkForce [ "self=/etc/self/compat" "nixpkgs=/etc/nixpkgs" ]; binaryCaches = [ @@ -13,7 +14,7 @@ ]; registry.self.flake = inputs.self; - registry.nixpkgs.flake = inputs.nixpkgs; + registry.nixpkgs.flake = if !isContainer then inputs.nixpkgs else inputs.nixpkgs-stable; trustedUsers = [ "root" "alukard" "@wheel" ]; @@ -34,6 +35,6 @@ requireSignedBinaryCaches = true; }; - environment.etc.nixpkgs.source = inputs.nixpkgs; + environment.etc.nixpkgs.source = if !isContainer then inputs.nixpkgs else inputs.nixpkgs-stable; environment.etc.self.source = inputs.self; } \ No newline at end of file