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.
This commit is contained in:
padreug 2025-10-09 22:27:21 +02:00
parent f6c7a1c3f6
commit 4170340d28

View file

@ -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";
}
}