{ pkgs, ... }: let cfg = import ../../conf/packages.conf { inherit pkgs; }; moduleName = "hm-packages"; in { # Unfree should be set at NixOS level nixpkgs.config.allowUnfree = true; # Install packages via Home Manager (integrated into NixOS) home-manager.users.henrov = { home.packages = cfg.packages; }; # Optional: keep these available in the NixOS config namespace if you want # to use them with nix-flatpak later. # (No effect unless you wire them to a flatpak module.) _module.args.packagesConf = cfg; home.file.".nixlog/loaded.${moduleName}-module-loaded".text = "loaded\n"; }