Update home.nix
- Add xonsh - Setup nix-direnv
This commit is contained in:
27
nix/home.nix
27
nix/home.nix
@@ -1,5 +1,23 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, ... }: let
|
||||
# Mach-nix is a toolkit for constructing custom Python environments
|
||||
mach-nix = import (builtins.fetchGit {
|
||||
url = "https://github.com/DavHau/mach-nix/";
|
||||
ref = "refs/tags/3.3.0";
|
||||
}) {
|
||||
pkgs = pkgs;
|
||||
};
|
||||
|
||||
xonsh_pyenv = mach-nix.mkPython {
|
||||
requirements = ''
|
||||
xontrib-fzf-widgets
|
||||
xonsh-direnv
|
||||
'';
|
||||
};
|
||||
|
||||
xonsh_with_plugins = pkgs.xonsh.overrideAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ xonsh_pyenv.python.pkgs.selectPkgs xonsh_pyenv.python.pkgs;
|
||||
});
|
||||
in
|
||||
{
|
||||
# Home Manager needs a bit of information about you and the
|
||||
# paths it should manage.
|
||||
@@ -20,16 +38,15 @@
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
xonsh_with_plugins
|
||||
zoxide
|
||||
fd
|
||||
fzf
|
||||
ncdu
|
||||
ripgrep
|
||||
# kitty
|
||||
git
|
||||
direnv
|
||||
leiningen
|
||||
];
|
||||
|
||||
services.lorri.enable = true;
|
||||
programs.direnv.enable = true;
|
||||
programs.direnv.nix-direnv.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user