dotfiles/.config/nix/lib/mkCommon.nix
Ahmad Ansori Palembani 26c9cfbaed
refactor(nix): Mix stable and unstable packages
Also replace inkscape with brew cask inkscape on macOS
2024-11-02 10:06:35 +07:00

20 lines
413 B
Nix

{ pkgs, pkgs-unstable, ... }:
let
custom = {
python = (pkgs.python312Full.withPackages (py: [
py.pip
py.tkinter
py.dnspython
]));
};
custom.inkscape = if pkgs.stdenv.isDarwin then pkgs.brewCasks.inkscape else (pkgs.inkscape.override { python3 = custom.python; });
in {
inherit custom;
packages = [
pkgs.zsh
pkgs.home-manager
pkgs.zoxide
custom.inkscape
];
}