`features/default.nix` had a let-block that read `~/.config/home-manager/user-packages.json` at eval time via `builtins.pathExists` + `builtins.readFile`, parsed it as JSON, and filtered to valid pkgs — then never appended the result to `home.packages` or anywhere else. The `userPackages` variable was completely orphan. Two problems with the dead code: (1) it was an undocumented hidden mechanism (no docs mentioned `user-packages.json`), (2) it made flake evaluation impurely depend on a user's home directory for no payoff — flake outputs would silently differ between machines depending on the presence of that file, even though nothing in the build used it. Removed the let-block entirely. The nomarchyLib import stays. Found during Pillar 8 audit of features/apps.
81 lines
1.9 KiB
Nix
81 lines
1.9 KiB
Nix
{ config, pkgs, inputs, lib, ... }:
|
|
|
|
let
|
|
nomarchyLib = import ../lib { inherit lib; };
|
|
in
|
|
{
|
|
imports = [
|
|
inputs.nix-colors.homeManagerModules.default
|
|
inputs.walker.homeManagerModules.default
|
|
../core/home
|
|
../themes/engine/stylix-compat.nix
|
|
../themes/engine/loader.nix
|
|
../themes/engine/files.nix
|
|
../themes/engine/scripts.nix
|
|
../themes/engine/stylix.nix
|
|
./apps/alacritty/default.nix
|
|
./apps/btop/default.nix
|
|
./apps/chromium/default.nix
|
|
./apps/elephant/default.nix
|
|
./apps/ghostty/default.nix
|
|
./apps/kitty/default.nix
|
|
./apps/lazygit/default.nix
|
|
./apps/opencode/default.nix
|
|
./apps/tmux/default.nix
|
|
./apps/vscode.nix
|
|
./apps/walker.nix
|
|
./apps/swayosd.nix
|
|
./desktop/nightlight.nix
|
|
./desktop/idle.nix
|
|
./desktop/hyprland/default.nix
|
|
./desktop/waybar/default.nix
|
|
./scripts/default.nix
|
|
./scripts/battery-monitor.nix
|
|
];
|
|
|
|
|
|
colorScheme = lib.mkDefault (nomarchyLib.getColorScheme config.nomarchy.theme);
|
|
|
|
# Enable neovim program module (required for stylix integration)
|
|
programs.neovim.enable = lib.mkDefault true;
|
|
|
|
home.packages = lib.mkDefault (with pkgs; [
|
|
# Core applications
|
|
firefox
|
|
xfce.thunar
|
|
|
|
# Media
|
|
imv # Image viewer
|
|
mpv # Video player
|
|
|
|
# Hyprland ecosystem
|
|
swww # Wallpaper daemon
|
|
mako # Notification daemon
|
|
hyprlock # Lock screen
|
|
|
|
# Screenshot and clipboard
|
|
wl-clipboard
|
|
grim
|
|
slurp
|
|
|
|
# Hardware control
|
|
brightnessctl
|
|
playerctl
|
|
pamixer
|
|
|
|
# Utilities
|
|
jq
|
|
xmlstarlet
|
|
mise
|
|
gum # TUI components for scripts
|
|
xdg-terminal-exec
|
|
swaybg
|
|
rofi-wayland
|
|
|
|
# Theming — cursor package stays here; icon theme packages are pulled in
|
|
# dynamically by themes/engine/stylix.nix via nomarchyLib.iconThemePackage
|
|
# so switching to e.g. summer-night auto-installs everforest-gtk-theme.
|
|
bibata-cursors
|
|
]);
|
|
}
|