From 514e3a7f62427424a0d629a1d1b4c0c55fe4e838 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Fri, 23 Oct 2026 11:58:15 +0200 Subject: [PATCH] Refactor home modules and update printing comments Add placeholder publishing settings in printing module. Refactor Codex module to add nodejs to home packages and nest the program configuration under `config`. Simplify Opencode validation by removing the TUI validation flag, keeping only `config`. --- modules/core/printing.nix | 5 +++++ modules/home/codex/default.nix | 20 +++++++++++++------- modules/home/opencode/default.nix | 5 +---- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/modules/core/printing.nix b/modules/core/printing.nix index 028c52c..9140bcf 100644 --- a/modules/core/printing.nix +++ b/modules/core/printing.nix @@ -28,6 +28,11 @@ enable = true; userServices = true; }; + # settings.publish = { + # disable-publishing = false; + # disable-user-service-publishing = false; + # publish-adresses = true; + # }; }; ipp-usb.enable = true; diff --git a/modules/home/codex/default.nix b/modules/home/codex/default.nix index 33dd201..3cf58b0 100644 --- a/modules/home/codex/default.nix +++ b/modules/home/codex/default.nix @@ -6,13 +6,19 @@ }: { options.codex.enable = lib.mkEnableOption "Codex"; - config.programs.codex = lib.mkIf config.codex.enable { - enable = true; - package = pkgs.codex; - mutableSettings = true; - # skills = { - # beads = "${pkgs.beads.src}/plugins/beads/skills/beads"; - # }; + config = lib.mkIf config.codex.enable { + home.packages = [ + pkgs.nodejs + ]; + + programs.codex = { + enable = true; + package = pkgs.codex; + mutableSettings = true; + # skills = { + # beads = "${pkgs.beads.src}/plugins/beads/skills/beads"; + # }; + }; }; imports = [ diff --git a/modules/home/opencode/default.nix b/modules/home/opencode/default.nix index af22e8d..203b8b7 100644 --- a/modules/home/opencode/default.nix +++ b/modules/home/opencode/default.nix @@ -9,10 +9,7 @@ config.programs.opencode = lib.mkIf config.opencode.enable { enable = true; package = pkgs.opencode; - validateFiles = { - config = true; - tui = true; - }; + validateFiles.config = true; }; imports = [