From 6b6556cd8006697423686594296b8ff83b961ff6 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 3 Dec 2025 15:32:55 +0100 Subject: [PATCH] refactor(home/work): improve configuration structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add nixpkgs.config.allowUnfree setting - Fix nixGL configuration path to targets.genericLinux.nixGL - Remove redundant anki program import (now in modules) - Enable gh and kubecolor programs - Pass inputs to packages.nix for flake package access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- home/hosts/work/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index 4ca3f9c..9455126 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -15,26 +15,32 @@ in ../../modules/k9s.nix ]; + nixpkgs.config.allowUnfree = true; + home.stateVersion = "25.05"; home.username = username; home.homeDirectory = "/home/${username}"; - nixGL = { + targets.genericLinux.nixGL = { packages = inputs.nixgl.packages; defaultWrapper = "mesa"; }; programs = { - anki = import ../../modules/anki.nix; + # editorconfig.enable = true; firefox = import ../../modules/firefox.nix { inherit inputs; inherit pkgs; inherit config; }; + gh.enable = true; keepassxc = import ../../modules/keepassxc.nix; + kubecolor.enable = true; }; + home.packages = import ./packages.nix { - inherit pkgs; + inherit inputs; inherit config; + inherit pkgs; }; }