From b08b532b33286f8451a834b2453bcdbc4ce12932 Mon Sep 17 00:00:00 2001 From: jahanson Date: Tue, 21 May 2024 10:10:55 -0500 Subject: [PATCH] Lets see if this fixes things. --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index 1e9db2d..c2ee6db 100644 --- a/flake.nix +++ b/flake.nix @@ -99,6 +99,7 @@ mkNixosConfig = { hostname , system ? "x86_64-linux" + , buildPhase ? "" , nixpkgs ? inputs.nixpkgs , hardwareModules ? [ ] # basemodules is the base of the entire machine building @@ -143,6 +144,10 @@ # Nix dev laptop hostname = "durincore"; system = "x86_64-linux"; + buildPhase = '' + # this line removes a bug where value of $HOME is set to a non-writable /homeless-shelter dir + export HOME=$(pwd) + ''; hardwareModules = [ ./nixos/profiles/hw-thinkpad-t470.nix inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t470s @@ -158,6 +163,10 @@ # forgejo server hostname = "varda"; system = "aarch64-linux"; + buildPhase = '' + # this line removes a bug where value of $HOME is set to a non-writable /homeless-shelter dir + export HOME=$(pwd) + ''; hardwareModules = [ ./nixos/profiles/hw-hetzner-cax.nix ];