refactor(nix): Clean up

* Remove optionals in darwin configuration since it's now a darwin-only
  config
* Move zoxide to common
This commit is contained in:
Ahmad Ansori Palembani 2024-10-23 09:39:23 +07:00
parent 6e451214b5
commit f596ba43f5
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 1 additions and 5 deletions

View file

@ -13,5 +13,6 @@ in {
packages = [ packages = [
pkgs.zsh pkgs.zsh
pkgs.home-manager pkgs.home-manager
pkgs.zoxide
]; ];
} }

View file

@ -30,14 +30,10 @@
pkgs.coreutils-full pkgs.coreutils-full
pkgs.rclone pkgs.rclone
(pkgs.yt-dlp.override { withAlias = true; }) (pkgs.yt-dlp.override { withAlias = true; })
pkgs.zoxide
# >> For macOS only
] ++ pkgs.lib.optionals (pkgs.stdenv.isDarwin) [
pkgs.duti pkgs.duti
pkgs.pinentry_mac pkgs.pinentry_mac
pkgs.iina pkgs.iina
]; ];
# << For macOS only
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;

View file

@ -17,7 +17,6 @@
}; };
systemPackages = systemPackages =
common.packages ++ [ common.packages ++ [
pkgs.zoxide
]; ];
}; };