Install unprefixed coreutils on Mac for the sake of dired
This commit is contained in:
40
nix/home.nix
40
nix/home.nix
@@ -12,30 +12,22 @@
|
||||
# Enable integration with generic Linux OSs
|
||||
targets.genericLinux.enable = pkgs.stdenv.isLinux;
|
||||
|
||||
home.packages = with pkgs; let
|
||||
isOnMac = stdenv.hostPlatform.isDarwin;
|
||||
basePackages = [
|
||||
# Better cat
|
||||
bat
|
||||
# Better find
|
||||
fd
|
||||
# Better df
|
||||
duf
|
||||
# Better top
|
||||
htop
|
||||
ncdu
|
||||
ripgrep
|
||||
tmux
|
||||
fira-code
|
||||
fira-code-nerdfont
|
||||
roboto-mono
|
||||
];
|
||||
macPackages = basePackages ++ [
|
||||
# Emacs on Mac wants prefixed versions of GNU coreutils
|
||||
coreutils-prefixed
|
||||
];
|
||||
in
|
||||
if isOnMac then macPackages else basePackages;
|
||||
home.packages = with pkgs; [
|
||||
# Better cat
|
||||
bat
|
||||
# Better find
|
||||
fd
|
||||
# Better df
|
||||
duf
|
||||
# Better top
|
||||
htop
|
||||
ncdu
|
||||
ripgrep
|
||||
tmux
|
||||
fira-code
|
||||
fira-code-nerdfont
|
||||
roboto-mono
|
||||
];
|
||||
|
||||
imports = [
|
||||
./modules/fish
|
||||
|
||||
Reference in New Issue
Block a user