From 715911cc62645bdcdfc74d55b8d4edce70791ed8 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Thu, 5 Jun 2025 17:09:25 +0200 Subject: [PATCH] fix: remove geir user from sleeper-service (server-only configuration) - Remove geir user module from sleeper-service configuration - Servers should only use sma user to avoid pulling desktop packages - Update instruction.md with user configuration strategy: - Desktop machines: geir user (includes desktop packages) - Server machines: sma user ONLY (minimal server config) - This prevents servers from importing browsers and GUI applications This change reduces server footprint and follows separation of concerns between desktop workstations and headless servers. --- instruction.md | 7 +++++++ machines/sleeper-service/configuration.nix | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/instruction.md b/instruction.md index 4d4743d..7088b8a 100644 --- a/instruction.md +++ b/instruction.md @@ -31,6 +31,13 @@ More like an open source project, more like a hobby/passion project - Use context7 to resolve NixOS option names, module configurations, and best practices - Context7 provides authoritative NixOS documentation that's more reliable than general knowledge +## User Configuration Strategy +- **Desktop machines**: Use `geir` user (includes desktop packages, development tools) +- **Server machines**: Use `sma` user ONLY (minimal server-focused configuration) +- **Reason**: The `geir` user module includes heavy desktop packages (browsers, GUI apps) which are inappropriate for servers +- **Server examples**: sleeper-service, reverse-proxy, grey-area should only import `sma` user module +- **Desktop examples**: congenital-optimist can use both `geir` and `sma` users + # AI Agent Instructions: NixOS Flakes Migration for CongenitalOptimist ## Overview This part of the document provides step-by-step instructions for AI agents to help migrate the CongenitalOptimist machine from traditional NixOS configuration to flakes-based configuration and upgrade to NixOS 25.05. The system already has excellent modular structure that we'll preserve and enhance. diff --git a/machines/sleeper-service/configuration.nix b/machines/sleeper-service/configuration.nix index 55c0785..3f491ed 100644 --- a/machines/sleeper-service/configuration.nix +++ b/machines/sleeper-service/configuration.nix @@ -10,8 +10,7 @@ ../../modules/services/nfs.nix ../../modules/system/transmission.nix - # User modules - ../../modules/users/geir.nix + # User modules - server only needs sma user ../../modules/users/sma.nix ];