From ff9d839609628e92bbc2f46f6342841419866473 Mon Sep 17 00:00:00 2001 From: Xavier Lagraula Date: Mon, 11 May 2026 11:58:16 +0200 Subject: [PATCH] feat: add placeholder files for common host settings - Add hosts/default.nix: common settings for all hosts - Add hosts/servers/default.nix: common settings for all servers - Add hosts/workstations/default.nix: common settings for all workstations - Created for production, dev, and stage environments These files are placeholders for now. Later, common settings can be moved here to reduce duplication across host configurations. --- nixos-infra/environments/dev/hosts/default.nix | 14 ++++++++++++++ .../environments/dev/hosts/servers/default.nix | 15 +++++++++++++++ .../dev/hosts/workstations/default.nix | 15 +++++++++++++++ .../environments/production/hosts/default.nix | 14 ++++++++++++++ .../production/hosts/servers/default.nix | 15 +++++++++++++++ .../production/hosts/workstations/default.nix | 15 +++++++++++++++ nixos-infra/environments/stage/hosts/default.nix | 14 ++++++++++++++ .../environments/stage/hosts/servers/default.nix | 15 +++++++++++++++ .../stage/hosts/workstations/default.nix | 15 +++++++++++++++ 9 files changed, 132 insertions(+) create mode 100644 nixos-infra/environments/dev/hosts/default.nix create mode 100644 nixos-infra/environments/dev/hosts/servers/default.nix create mode 100644 nixos-infra/environments/dev/hosts/workstations/default.nix create mode 100644 nixos-infra/environments/production/hosts/default.nix create mode 100644 nixos-infra/environments/production/hosts/servers/default.nix create mode 100644 nixos-infra/environments/production/hosts/workstations/default.nix create mode 100644 nixos-infra/environments/stage/hosts/default.nix create mode 100644 nixos-infra/environments/stage/hosts/servers/default.nix create mode 100644 nixos-infra/environments/stage/hosts/workstations/default.nix diff --git a/nixos-infra/environments/dev/hosts/default.nix b/nixos-infra/environments/dev/hosts/default.nix new file mode 100644 index 0000000..49b78dd --- /dev/null +++ b/nixos-infra/environments/dev/hosts/default.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all hosts in the dev environment + # This file is imported by all host configurations (servers and workstations) + + # TODO: Move common settings here later + # Examples: + # - Common users/groups + # - Common packages + # - Common services + # - Common security policies + # - Common monitoring/alerting +} \ No newline at end of file diff --git a/nixos-infra/environments/dev/hosts/servers/default.nix b/nixos-infra/environments/dev/hosts/servers/default.nix new file mode 100644 index 0000000..3f63bc6 --- /dev/null +++ b/nixos-infra/environments/dev/hosts/servers/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all servers in the dev environment + # This file is imported by all server configurations + + # TODO: Move common server settings here later + # Examples: + # - Server-specific users/groups + # - Server-specific packages + # - Server-specific services + # - Server-specific security policies + # - Server-specific monitoring/alerting + # - Locale: en_US.UTF-8 (for servers) +} \ No newline at end of file diff --git a/nixos-infra/environments/dev/hosts/workstations/default.nix b/nixos-infra/environments/dev/hosts/workstations/default.nix new file mode 100644 index 0000000..b52c9be --- /dev/null +++ b/nixos-infra/environments/dev/hosts/workstations/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all workstations in the dev environment + # This file is imported by all workstation configurations + + # TODO: Move common workstation settings here later + # Examples: + # - Workstation-specific users/groups + # - Workstation-specific packages + # - Workstation-specific services + # - Workstation-specific security policies + # - Workstation-specific monitoring/alerting + # - Locale: fr_FR.UTF-8 (for workstations) +} \ No newline at end of file diff --git a/nixos-infra/environments/production/hosts/default.nix b/nixos-infra/environments/production/hosts/default.nix new file mode 100644 index 0000000..9c4d751 --- /dev/null +++ b/nixos-infra/environments/production/hosts/default.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all hosts in the production environment + # This file is imported by all host configurations (servers and workstations) + + # TODO: Move common settings here later + # Examples: + # - Common users/groups + # - Common packages + # - Common services + # - Common security policies + # - Common monitoring/alerting +} \ No newline at end of file diff --git a/nixos-infra/environments/production/hosts/servers/default.nix b/nixos-infra/environments/production/hosts/servers/default.nix new file mode 100644 index 0000000..ba65847 --- /dev/null +++ b/nixos-infra/environments/production/hosts/servers/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all servers in the production environment + # This file is imported by all server configurations + + # TODO: Move common server settings here later + # Examples: + # - Server-specific users/groups + # - Server-specific packages + # - Server-specific services + # - Server-specific security policies + # - Server-specific monitoring/alerting + # - Locale: en_US.UTF-8 (for servers) +} \ No newline at end of file diff --git a/nixos-infra/environments/production/hosts/workstations/default.nix b/nixos-infra/environments/production/hosts/workstations/default.nix new file mode 100644 index 0000000..1fccef4 --- /dev/null +++ b/nixos-infra/environments/production/hosts/workstations/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all workstations in the production environment + # This file is imported by all workstation configurations + + # TODO: Move common workstation settings here later + # Examples: + # - Workstation-specific users/groups + # - Workstation-specific packages + # - Workstation-specific services + # - Workstation-specific security policies + # - Workstation-specific monitoring/alerting + # - Locale: fr_FR.UTF-8 (for workstations) +} \ No newline at end of file diff --git a/nixos-infra/environments/stage/hosts/default.nix b/nixos-infra/environments/stage/hosts/default.nix new file mode 100644 index 0000000..164f633 --- /dev/null +++ b/nixos-infra/environments/stage/hosts/default.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all hosts in the stage environment + # This file is imported by all host configurations (servers and workstations) + + # TODO: Move common settings here later + # Examples: + # - Common users/groups + # - Common packages + # - Common services + # - Common security policies + # - Common monitoring/alerting +} \ No newline at end of file diff --git a/nixos-infra/environments/stage/hosts/servers/default.nix b/nixos-infra/environments/stage/hosts/servers/default.nix new file mode 100644 index 0000000..2570882 --- /dev/null +++ b/nixos-infra/environments/stage/hosts/servers/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all servers in the stage environment + # This file is imported by all server configurations + + # TODO: Move common server settings here later + # Examples: + # - Server-specific users/groups + # - Server-specific packages + # - Server-specific services + # - Server-specific security policies + # - Server-specific monitoring/alerting + # - Locale: en_US.UTF-8 (for servers) +} \ No newline at end of file diff --git a/nixos-infra/environments/stage/hosts/workstations/default.nix b/nixos-infra/environments/stage/hosts/workstations/default.nix new file mode 100644 index 0000000..5b500ea --- /dev/null +++ b/nixos-infra/environments/stage/hosts/workstations/default.nix @@ -0,0 +1,15 @@ +{ config, pkgs, lib, ... }: + +{ + # Common settings for all workstations in the stage environment + # This file is imported by all workstation configurations + + # TODO: Move common workstation settings here later + # Examples: + # - Workstation-specific users/groups + # - Workstation-specific packages + # - Workstation-specific services + # - Workstation-specific security policies + # - Workstation-specific monitoring/alerting + # - Locale: fr_FR.UTF-8 (for workstations) +} \ No newline at end of file