Install unprefixed coreutils on Mac for the sake of dired
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
with config.lib.file;
|
||||
let dotdir = "${config.home.homeDirectory}/.dotfiles";
|
||||
isOnMac = pkgs.stdenv.hostPlatform.isDarwin;
|
||||
in
|
||||
{
|
||||
programs.emacs.enable = true;
|
||||
programs.emacs.package = pkgs.emacs;
|
||||
programs.emacs.extraPackages = epkgs: [ epkgs.vterm ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
# Required by nativeComp but not a dependency for some reason
|
||||
zstd
|
||||
];
|
||||
home.packages = with pkgs; let
|
||||
basePackages = [ zstd ];
|
||||
macPackages = basePackages ++ [ coreutils ];
|
||||
in
|
||||
if isOnMac then macPackages else basePackages;
|
||||
|
||||
xdg.configFile = {
|
||||
"emacs".source = mkOutOfStoreSymlink "${dotdir}/thoom-emacs";
|
||||
|
||||
Reference in New Issue
Block a user