From 4170340d28550f8ea8737abf64ad051374fe35f2 Mon Sep 17 00:00:00 2001 From: padreug Date: Thu, 9 Oct 2025 22:27:21 +0200 Subject: [PATCH] Update Nix configuration to use git-based nixpkgs and adjust module imports Modified krops.nix to switch to a git-based nixpkgs source, noting the initial download cost. Updated shared.nix to change module imports to absolute paths and enabled experimental Nix features. Adjusted configuration.nix to import shared configuration from an absolute path and updated the domain name for machine1. These changes enhance clarity, maintainability, and functionality in the NixOS setup. --- config/shared.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/config/shared.nix b/config/shared.nix index d751580..0840e56 100644 --- a/config/shared.nix +++ b/config/shared.nix @@ -2,16 +2,18 @@ { imports = [ - ./nginx.nix - ./modules/lnbits-service.nix + /var/src/config-nginx + /var/src/config-modules/lnbits-service.nix { _module.args = { inherit domain; }; } - ./pict-rs.nix - ./lnbits.nix + /var/src/config-pict-rs + /var/src/config-lnbits ]; # Set hostname (replace dots with hyphens, e.g., "demo.ariege.io" → "demo-ariege-io") networking.hostName = builtins.replaceStrings ["."] ["-"] domain; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + # System packages environment.systemPackages = with pkgs; [ vim @@ -38,4 +40,4 @@ # NixOS release version system.stateVersion = "25.05"; -} \ No newline at end of file +}