aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nix/flake.nix
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-22 10:41:23 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-22 10:41:23 +0100
commita97634f5062088f8d4e6d3c06fdf82a87c157167 (patch)
tree0beb87b755281da3d25caa1a8def0a5a2348c755 /nix/flake.nix
parent844ef0c37a6f10a1c912707c35dd843c44ea92ba (diff)
downloaddotfiles-a97634f5062088f8d4e6d3c06fdf82a87c157167.tar.gz
dotfiles-a97634f5062088f8d4e6d3c06fdf82a87c157167.tar.bz2
dotfiles-a97634f5062088f8d4e6d3c06fdf82a87c157167.zip
fix(nix,zsh): tuicr flake schema + restore XDG_DATA_DIRS
tuicr's upstream flake uses the legacy 'defaultPackage.<system>' output schema, not 'packages.<system>.default' — fixes the home-manager switch error 'attribute packages missing' at nix/flake.nix:28. zsh: removing the system zsh package took /etc/zsh/zprofile with it, which used to 'source /etc/profile' and pull in /etc/profile.d/*.sh (flatpak.sh, nix.sh, etc.). Reconstruct XDG_DATA_DIRS in dot_zprofile defensively, including per-user + system flatpak exports + nix-profile share, so 'flatpak update' stops warning and desktop entries from flatpak/nix-installed apps work in launchers (fuzzel).
Diffstat (limited to 'nix/flake.nix')
-rw-r--r--nix/flake.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nix/flake.nix b/nix/flake.nix
index 9e26edb..ca2ad66 100644
--- a/nix/flake.nix
+++ b/nix/flake.nix
@@ -25,7 +25,9 @@
overlays = [
# Expose `pkgs.tuicr` so common.nix can list it next to other
# packages without threading inputs into every module.
- (final: prev: { tuicr = tuicr.packages.${system}.default; })
+ # tuicr's flake uses the legacy `defaultPackage.<system>`
+ # schema (not `packages.<system>.default`); see its flake.nix.
+ (final: prev: { tuicr = tuicr.defaultPackage.${system}; })
];
# Whitelist specific unfree packages (claude-code,
# github-copilot-cli) instead of globally setting allowUnfree,