···11+{ pkgs, ... }:
12{
23 nixpkgs.config = {
34 # I want to install packages that are not FOSS sometimes
···3334 # Also a good idea to know which packages might be very out of date or broken
3435 # showDerivationWarnings = [ "maintainerless" ];
3536 };
3737+3838+ assertions = [
3939+ {
4040+ assertion = pkgs.overlays == [ ];
4141+ message = "nixpkgs overlays are not allowed in my configurations.";
4242+ }
4343+ ];
3644}
···11-# this file is a set of patches to remove the desktop files from this list of packages
22-# I do this because I don't want these packages to show up in my application launcher
33-#
44-# Also do note that we are using the symlinkJoin function to create a new derivation
55-# this is so we don't have to build the original packages again
66-_: prev: {
77- btop =
88- if prev.stdenv.hostPlatform.isLinux then
99- prev.symlinkJoin {
1010- name = "btop-nodesktop";
1111-1212- paths = [ prev.btop ];
1313- postBuild = ''
1414- rm $out/share/applications/btop.desktop
1515- '';
1616-1717- inherit (prev.btop) version meta passthru;
1818- }
1919- else
2020- prev.btop;
2121-2222- fish =
2323- if prev.stdenv.hostPlatform.isLinux then
2424- prev.symlinkJoin {
2525- name = "fish-nodesktop";
2626-2727- paths = [ prev.fish ];
2828- postBuild = ''
2929- rm $out/share/applications/fish.desktop
3030- '';
3131-3232- inherit (prev.fish) version passthru meta;
3333- }
3434- else
3535- prev.fish;
3636-3737- ranger =
3838- if prev.stdenv.hostPlatform.isLinux then
3939- prev.symlinkJoin {
4040- name = "ranger-nodesktop";
4141-4242- paths = [ prev.ranger ];
4343- postBuild = ''
4444- rm $out/share/applications/ranger.desktop
4545- '';
4646-4747- inherit (prev.ranger) version passthru meta;
4848- }
4949- else
5050- prev.ranger;
5151-}
+5-2
modules/home/programs/direnv.nix
···11-{ config, ... }:
11+{ pkgs, config, ... }:
22{
33 programs.direnv = {
44 inherit (config.garden.profiles.workstation) enable;
55 silent = true;
6677 # faster, persistent implementation of use_nix and use_flake
88- nix-direnv.enable = true;
88+ nix-direnv = {
99+ enable = true;
1010+ package = pkgs.nix-direnv.override { nix = config.nix.package; };
1111+ };
9121013 # store direnv in cache and not per project
1114 # <https://github.com/direnv/direnv/wiki/Customizing-cache-location#hashed-directories>