Enable lix & remote build on weebill

This commit is contained in:
Fern Garden 2025-07-25 17:22:15 +08:00
parent b1aded9860
commit daf692e9a6

View file

@ -66,6 +66,7 @@ with inputs.nixpkgs.lib; {
specialArgs = { specialArgs = {
# Make some variables accesible to modules. # Make some variables accesible to modules.
inherit inherit
inputs
hostname hostname
secrets secrets
; ;
@ -73,7 +74,10 @@ with inputs.nixpkgs.lib; {
modules = modules =
[ [
{nix.nixPath = ["nixpkgs=${nixpkgs}"];} # Set $NIX_PATH.
nixvim.nixosModules.nixvim # Neovim. nixvim.nixosModules.nixvim # Neovim.
lix-module.nixosModules.default # lix.
./suites/${suite} # Collection of configuration options for different types of systems. ./suites/${suite} # Collection of configuration options for different types of systems.
./hosts/${hostname} # Host-specific config. ./hosts/${hostname} # Host-specific config.
@ -99,6 +103,10 @@ with inputs.nixpkgs.lib; {
user = "root"; user = "root";
sshuser = "fern"; sshuser = "fern";
path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.${hostname}; path = deployPkgs.deploy-rs.lib.activate.nixos self.nixosConfigurations.${hostname};
remoteBuild =
if (system != "x86_64-linux")
then true
else false;
}; };
}; };
}; };