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.
This commit is contained in:
padreug 2025-10-08 18:55:49 +02:00
parent c858eebb93
commit c27fb73f3e

View file

@ -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; [