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:
parent
c858eebb93
commit
c27fb73f3e
1 changed files with 2 additions and 2 deletions
|
|
@ -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; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue