From 1bb97448a4887258504aae927f40b30dbcaf717f Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Sat, 28 Mar 2026 10:41:33 +0000 Subject: [PATCH] refactor(hosts): rename jason to janet --- AGENTS.md | 6 +++--- README.md | 2 +- modules/hosts/{jason.nix => janet.nix} | 10 +++++----- modules/inventory.nix | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) rename modules/hosts/{jason.nix => janet.nix} (64%) diff --git a/AGENTS.md b/AGENTS.md index 09fc9b2..9bd32c1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,7 +5,7 @@ ### Local Development ```bash nix run .#build # Build current host config -nix run .#build -- # Build specific host (chidi, jason, michael, tahani) +nix run .#build -- # Build specific host (chidi, janet, michael, tahani) nix run .#apply # Build and apply locally (darwin-rebuild/nixos-rebuild switch) nix flake check # Validate flake ``` @@ -62,7 +62,7 @@ alejandra . # Format all Nix files **Imports**: Auto-imported by import-tree; underscore-prefixed dirs (`_lib/`, `_darwin/`, etc.) are excluded from auto-import -**Deployment**: deploy-rs for NixOS hosts (michael, tahani); darwin hosts (chidi, jason) are local-only +**Deployment**: deploy-rs for NixOS hosts (michael, tahani); darwin hosts (chidi, janet) are local-only ### Nix Language Conventions @@ -129,7 +129,7 @@ in { ### Naming Conventions - **Aspect names**: `den.aspects..` for feature configuration -- **Hostnames**: Lowercase, descriptive (e.g., `michael`, `tahani`, `chidi`, `jason`) +- **Hostnames**: Lowercase, descriptive (e.g., `michael`, `tahani`, `chidi`, `janet`) - **Module files**: Descriptive, lowercase with hyphens (e.g., `neovim-config.nix`) ### Secrets Management diff --git a/README.md b/README.md index f18ba20..9b70d8a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Personal Nix flake for four machines: - `michael` - x86_64 Linux server - `tahani` - x86_64 Linux home server / workstation - `chidi` - aarch64 Darwin work laptop -- `jason` - aarch64 Darwin personal laptop +- `janet` - aarch64 Darwin personal laptop ## Repository Map diff --git a/modules/hosts/jason.nix b/modules/hosts/janet.nix similarity index 64% rename from modules/hosts/jason.nix rename to modules/hosts/janet.nix index eef0fde..21774c9 100644 --- a/modules/hosts/jason.nix +++ b/modules/hosts/janet.nix @@ -1,20 +1,20 @@ {den, ...}: { - den.hosts.aarch64-darwin.jason.users.cschmatzler.aspect = "jason-cschmatzler"; + den.hosts.aarch64-darwin.janet.users.cschmatzler.aspect = "janet-cschmatzler"; - den.aspects.jason-cschmatzler = { + den.aspects.janet-cschmatzler = { includes = [ den.aspects.user-darwin-laptop den.aspects.user-personal ]; }; - den.aspects.jason.includes = [ + den.aspects.janet.includes = [ (den.lib.perHost { includes = [den.aspects.host-darwin-base]; darwin = {...}: { - networking.hostName = "jason"; - networking.computerName = "jason"; + networking.hostName = "janet"; + networking.computerName = "janet"; sops.secrets.opencode-api-key = { sopsFile = ../../secrets/opencode-api-key; diff --git a/modules/inventory.nix b/modules/inventory.nix index 109f20e..f9dc580 100644 --- a/modules/inventory.nix +++ b/modules/inventory.nix @@ -1,6 +1,6 @@ {...}: { den.hosts.aarch64-darwin.chidi.users.cschmatzler = {}; - den.hosts.aarch64-darwin.jason.users.cschmatzler = {}; + den.hosts.aarch64-darwin.janet.users.cschmatzler = {}; den.hosts.x86_64-linux.michael.users.cschmatzler = {}; den.hosts.x86_64-linux.tahani.users.cschmatzler = {}; }