From daf692e9a6a0c10685ee0f9c95c117ca6f1bc36b Mon Sep 17 00:00:00 2001 From: Fern Garden Date: Fri, 25 Jul 2025 17:22:15 +0800 Subject: [PATCH] Enable lix & remote build on weebill --- helpers.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/helpers.nix b/helpers.nix index 9b9e5ab..a87e69c 100644 --- a/helpers.nix +++ b/helpers.nix @@ -66,6 +66,7 @@ with inputs.nixpkgs.lib; { specialArgs = { # Make some variables accesible to modules. inherit + inputs hostname secrets ; @@ -73,7 +74,10 @@ with inputs.nixpkgs.lib; { modules = [ + {nix.nixPath = ["nixpkgs=${nixpkgs}"];} # Set $NIX_PATH. + nixvim.nixosModules.nixvim # Neovim. + lix-module.nixosModules.default # lix. ./suites/${suite} # Collection of configuration options for different types of systems. ./hosts/${hostname} # Host-specific config. @@ -99,6 +103,10 @@ with inputs.nixpkgs.lib; { user = "root"; sshuser = "fern"; path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.${hostname}; + remoteBuild = + if (system != "x86_64-linux") + then true + else false; }; }; };