From c27fb73f3e327cdc08a3b206ab1425e2b9c3495e Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 8 Oct 2025 18:55:49 +0200 Subject: [PATCH] Refactor shared Nix configuration to improve hostname handling and enable experimental features Updated the shared Nix configuration to replace dots in the domain with hyphens for hostname setting, enhancing clarity. Additionally, enabled experimental Nix features, including 'nix-command' and 'flakes', to improve functionality and flexibility in the NixOS setup. --- config/shared.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/shared.nix b/config/shared.nix index 7ff887e..d751580 100644 --- a/config/shared.nix +++ b/config/shared.nix @@ -9,8 +9,8 @@ ./lnbits.nix ]; - # Set hostname (extract from domain, e.g., "4lpaca" from "4lpaca.io") - networking.hostName = builtins.head (pkgs.lib.splitString "." domain); + # Set hostname (replace dots with hyphens, e.g., "demo.ariege.io" → "demo-ariege-io") + networking.hostName = builtins.replaceStrings ["."] ["-"] domain; # System packages environment.systemPackages = with pkgs; [