Build machine config change and fixes, improve the dry running, move about the some configs when using builtin hardware-configuration.nix, and fix some syntax issues.

This commit is contained in:
Root User 2026-02-12 17:37:54 +01:00
parent c7d4fc7e47
commit 3ac51c3662
Signed by: root
GPG key ID: 087F0A95E5766D72
4 changed files with 31 additions and 59 deletions

View file

@ -42,21 +42,6 @@
local.userDescription = "NixOS Build Machine";
local.address = "10.1.1.3";
# Add Lix instead of Nix
nixpkgs.overlays = [
(final: prev: {
inherit
(prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena
;
})
];
nix.package = pkgs.lixPackageSets.stable.lix;
# Enable Rsync
services.rsync.enable = true;
@ -124,35 +109,6 @@
# Enable Tailscale
services.tailscale.enable = true;
networking.hostName = local.hostname; # Define your hostname.
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Copenhagen";
# Select internationalisation properties.
i18n.defaultLocale = "en_AU.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_AU.UTF-8";
LC_IDENTIFICATION = "en_AU.UTF-8";
LC_MEASUREMENT = "en_AU.UTF-8";
LC_MONETARY = "en_AU.UTF-8";
LC_NAME = "en_AU.UTF-8";
LC_NUMERIC = "en_AU.UTF-8";
LC_PAPER = "en_AU.UTF-8";
LC_TELEPHONE = "en_AU.UTF-8";
LC_TIME = "en_AU.UTF-8";
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "au";
variant = "";
};
# Define a user account. Don't forget to set a password with passwd.
users.users.nixosbm = {
isNormalUser = true;
@ -168,9 +124,6 @@
home = "/home/nixremote";
createHome = true;
# Lock the user account (no login shell)
shell = pkgs.shadow;
# SSH key for remote builds
openssh.authorizedKeys.keys = [
# Add the public key from your client machines here
@ -203,10 +156,18 @@
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Enable Podman for Gitea Actions Runner
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
# Network configuration for the build machine on the Proxmox bridge
networking.interfaces.ens18.ipv4.addresses = [
{
address = local.address;
address = config.local.address;
#dns = "10.1.1.2";
prefixLength = 24;
}