From d04dad50c7ff4ec2c7203e2f7d8bc87898335080 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Sat, 6 Sep 2025 11:16:35 +0200 Subject: [PATCH] Add module for machines located in Spain (keyboard and timezone) using tags --- clan.nix | 8 ++++++++ modules/spain.nix | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 modules/spain.nix diff --git a/clan.nix b/clan.nix index a2b5a2c..db8ffed 100644 --- a/clan.nix +++ b/clan.nix @@ -4,6 +4,8 @@ inventory.machines = { aresix = { deploy.targetHost = "root@[4a6:fed0:59ba:507d:baab:15f3:846d:ead4]"; +tags = ["server" "headless" "spain"]; + }; }; }; @@ -37,6 +39,12 @@ roles.default.extraModules = [./users/pedro/home.nix]; }; + spain-located = { + module.name = "importer"; + roles.default.tags.desktop = {}; + roles.default.extraModules = ["modules/spain.nix"]; + }; + # Docs: https://docs.clan.lol/reference/clanServices/mycelium/ mycelium = { roles.peer.tags.all = {}; diff --git a/modules/spain.nix b/modules/spain.nix new file mode 100644 index 0000000..4feabfc --- /dev/null +++ b/modules/spain.nix @@ -0,0 +1,5 @@ +{...}: { + time.timeZone = "Europe/Madrid"; + console.keyMap = "es"; + i18n.defaultLocale = "en_US.UTF-8"; +}