this derivation will be built: /nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv building '/nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv' on 'ssh-ng://customer@mac02' building '/nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv' treefmt-check> treefmt v2.5.0traversed 1215 files treefmt-check> emitted 527 files for processing treefmt-check> formatted 527 files (4 changed) in 1.845s treefmt-check> M home-manager/common.nix treefmt-check> M home-manager/modules/librewolf.nix treefmt-check> diff --git a/home-manager/common.nix b/home-manager/common.nix treefmt-check> index d7e31d7..9672622 100644 treefmt-check> --- a/home-manager/common.nix treefmt-check> +++ b/home-manager/common.nix treefmt-check> @@ -110,6 +110,9 @@ treefmt-check> home.stateVersion = "23.11"; treefmt-check> home.username = lib.mkDefault "joerg"; treefmt-check> home.homeDirectory = treefmt-check> - if pkgs.stdenv.hostPlatform.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}"; treefmt-check> + if pkgs.stdenv.hostPlatform.isDarwin then treefmt-check> + "/Users/${config.home.username}" treefmt-check> + else treefmt-check> + "/home/${config.home.username}"; treefmt-check> programs.home-manager.enable = true; treefmt-check> } treefmt-check> diff --git a/home-manager/modules/librewolf.nix b/home-manager/modules/librewolf.nix treefmt-check> index 6cdf064..3eeb6a7 100644 treefmt-check> --- a/home-manager/modules/librewolf.nix treefmt-check> +++ b/home-manager/modules/librewolf.nix treefmt-check> @@ -36,15 +36,17 @@ in treefmt-check> ''; treefmt-check> treefmt-check> # Native messaging host so the pywalfox addon can read noctalia colors. treefmt-check> - home.file.".librewolf/native-messaging-hosts/pywalfox.json" = lib.mkIf pkgs.stdenv.hostPlatform.isLinux { treefmt-check> - text = builtins.toJSON { treefmt-check> - name = "pywalfox"; treefmt-check> - description = "Automatically theme your browser using the colors generated by Pywal"; treefmt-check> - path = "${pkgs.pywalfox-native}/bin/pywalfox"; treefmt-check> - type = "stdio"; treefmt-check> - allowed_extensions = [ "pywalfox@frewacom.org" ]; treefmt-check> - }; treefmt-check> - }; treefmt-check> + home.file.".librewolf/native-messaging-hosts/pywalfox.json" = treefmt-check> + lib.mkIf pkgs.stdenv.hostPlatform.isLinux treefmt-check> + { treefmt-check> + text = builtins.toJSON { treefmt-check> + name = "pywalfox"; treefmt-check> + description = "Automatically theme your browser using the colors generated by Pywal"; treefmt-check> + path = "${pkgs.pywalfox-native}/bin/pywalfox"; treefmt-check> + type = "stdio"; treefmt-check> + allowed_extensions = [ "pywalfox@frewacom.org" ]; treefmt-check> + }; treefmt-check> + }; treefmt-check> treefmt-check> # Register native messaging host so the browser extension can talk to browser-cli treefmt-check> home.activation.installBrowserCliHost = lib.hm.dag.entryAfter [ "writeBoundary" ] '' error: build of '/nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv' on 'ssh-ng://customer@mac02' failed: Cannot build '/nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/i13vm0yzggcgrh90ayg7m0gchafpw4vx-treefmt-check Last 25 log lines: > > # Native messaging host so the pywalfox addon can read noctalia colors. > - home.file.".librewolf/native-messaging-hosts/pywalfox.json" = lib.mkIf pkgs.stdenv.hostPlatform.isLinux { > - text = builtins.toJSON { > - name = "pywalfox"; > - description = "Automatically theme your browser using the colors generated by Pywal"; > - path = "${pkgs.pywalfox-native}/bin/pywalfox"; > - type = "stdio"; > - allowed_extensions = [ "pywalfox@frewacom.org" ]; > - }; > - }; > + home.file.".librewolf/native-messaging-hosts/pywalfox.json" = > + lib.mkIf pkgs.stdenv.hostPlatform.isLinux > + { > + text = builtins.toJSON { > + name = "pywalfox"; > + description = "Automatically theme your browser using the colors generated by Pywal"; > + path = "${pkgs.pywalfox-native}/bin/pywalfox"; > + type = "stdio"; > + allowed_extensions = [ "pywalfox@frewacom.org" ]; > + }; > + }; > > # Register native messaging host so the browser extension can talk to browser-cli > home.activation.installBrowserCliHost = lib.hm.dag.entryAfter [ "writeBoundary" ] '' For full logs, run: nix log /nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv error: Cannot build '/nix/store/kc0fh805l783gx8ylsncv7ck918nzrql-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/i13vm0yzggcgrh90ayg7m0gchafpw4vx-treefmt-check