refactor(home/work): improve configuration structure

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-12-03 15:32:55 +01:00
parent 2913e9578e
commit 0652389078

View File

@@ -15,26 +15,32 @@ in
../../modules/k9s.nix ../../modules/k9s.nix
]; ];
nixpkgs.config.allowUnfree = true;
home.stateVersion = "25.05"; home.stateVersion = "25.05";
home.username = username; home.username = username;
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
nixGL = { targets.genericLinux.nixGL = {
packages = inputs.nixgl.packages; packages = inputs.nixgl.packages;
defaultWrapper = "mesa"; defaultWrapper = "mesa";
}; };
programs = { programs = {
anki = import ../../modules/anki.nix; # editorconfig.enable = true;
firefox = import ../../modules/firefox.nix { firefox = import ../../modules/firefox.nix {
inherit inputs; inherit inputs;
inherit pkgs; inherit pkgs;
inherit config; inherit config;
}; };
gh.enable = true;
keepassxc = import ../../modules/keepassxc.nix; keepassxc = import ../../modules/keepassxc.nix;
kubecolor.enable = true;
}; };
home.packages = import ./packages.nix { home.packages = import ./packages.nix {
inherit pkgs; inherit inputs;
inherit config; inherit config;
inherit pkgs;
}; };
} }