From d5cc9670dfca394b8f3367921eff0f2806841ff3 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sat, 9 Mar 2024 22:16:57 +0530 Subject: update --- modules/core/global.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'modules/core') diff --git a/modules/core/global.nix b/modules/core/global.nix index fffe8ab..5ab647d 100644 --- a/modules/core/global.nix +++ b/modules/core/global.nix @@ -1,11 +1,20 @@ { pkgs, ... }: -{ - nix.settings = { - experimental-features = [ "nix-command" "flakes" ]; - auto-optimise-store = true; +let + nix_path = "/tmp/nix_path"; +in { + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + auto-optimise-store = true; + }; + nixPath = [ "nixpkgs=${nix_path}" ]; }; + systemd.tmpfiles.rules = [ + "L+ ${nix_path} - - - - ${pkgs.path}" + ]; + time.timeZone = "Asia/Kolkata"; networking.networkmanager.enable = true; -- cgit v1.2.3