From 236e454e22c898691bce9a3ee134e625b23eb25e Mon Sep 17 00:00:00 2001 From: Xavier Lagraula Date: Sun, 10 May 2026 22:27:06 +0200 Subject: [PATCH] feat: add dev and stage environment skeletons - Create environments/dev/ and environments/stage/ with configuration.nix, network/, secrets/, and hosts/ directories - Both environments pin to the same framework commit as production - Dev and stage subdomains (dev.lagraula.fr, stage.lagraula.fr) ready for DNS server configurations when containers are deployed --- .../environments/dev/configuration.nix | 19 +++++++++++++++++++ nixos-infra/environments/dev/network/.gitkeep | 0 nixos-infra/environments/dev/secrets/.gitkeep | 0 .../environments/stage/configuration.nix | 19 +++++++++++++++++++ .../environments/stage/network/.gitkeep | 0 .../environments/stage/secrets/.gitkeep | 0 6 files changed, 38 insertions(+) create mode 100644 nixos-infra/environments/dev/configuration.nix create mode 100644 nixos-infra/environments/dev/network/.gitkeep create mode 100644 nixos-infra/environments/dev/secrets/.gitkeep create mode 100644 nixos-infra/environments/stage/configuration.nix create mode 100644 nixos-infra/environments/stage/network/.gitkeep create mode 100644 nixos-infra/environments/stage/secrets/.gitkeep diff --git a/nixos-infra/environments/dev/configuration.nix b/nixos-infra/environments/dev/configuration.nix new file mode 100644 index 0000000..7e6af6c --- /dev/null +++ b/nixos-infra/environments/dev/configuration.nix @@ -0,0 +1,19 @@ +{ config, pkgs, lib, ... }: + +let + # Pin to the same framework commit as production — update when testing + # new framework features in dev before rolling to production. + frameworkRev = "c53d997d075236f6d8c2a8e9db0238e46391735a"; + framework = builtins.fetchGit { + url = "ssh://git@gitea.prod.lagraula.fr:2222/xavier/nixos-infra-framework.git"; + rev = frameworkRev; + }; +in { + imports = [ + (framework + "/lib") + (framework + "/overlays/custom-pkgs.nix") + ]; + + # Dev environment-wide settings + system.stateVersion = "25.11"; +} \ No newline at end of file diff --git a/nixos-infra/environments/dev/network/.gitkeep b/nixos-infra/environments/dev/network/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/nixos-infra/environments/dev/secrets/.gitkeep b/nixos-infra/environments/dev/secrets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/nixos-infra/environments/stage/configuration.nix b/nixos-infra/environments/stage/configuration.nix new file mode 100644 index 0000000..2c19ed8 --- /dev/null +++ b/nixos-infra/environments/stage/configuration.nix @@ -0,0 +1,19 @@ +{ config, pkgs, lib, ... }: + +let + # Pin to the same framework commit as production — update when testing + # new framework features in staging before rolling to production. + frameworkRev = "c53d997d075236f6d8c2a8e9db0238e46391735a"; + framework = builtins.fetchGit { + url = "ssh://git@gitea.prod.lagraula.fr:2222/xavier/nixos-infra-framework.git"; + rev = frameworkRev; + }; +in { + imports = [ + (framework + "/lib") + (framework + "/overlays/custom-pkgs.nix") + ]; + + # Staging environment-wide settings + system.stateVersion = "25.11"; +} \ No newline at end of file diff --git a/nixos-infra/environments/stage/network/.gitkeep b/nixos-infra/environments/stage/network/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/nixos-infra/environments/stage/secrets/.gitkeep b/nixos-infra/environments/stage/secrets/.gitkeep new file mode 100644 index 0000000..e69de29