Replace lorri with nix-direnv

This commit is contained in:
coolneng 2021-09-29 12:09:36 +02:00
parent 8e44e20e4c
commit 55b4aba216
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 17 additions and 8 deletions

View File

@ -112,6 +112,7 @@
./modules/power.nix
./modules/cachix.nix
./overlays/emacs.nix
./overlays/nix-direnv.nix
];
}

View File

@ -2,7 +2,7 @@
{
# Improve nix-shell and direnv integration
services.lorri.enable = true;
environment.pathsToLink = [ "/share/nix-direnv" ];
# Enable virtualisation
virtualisation.libvirtd = {

View File

@ -3,13 +3,10 @@
with pkgs;
let
emacs-vterm = (
(emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages
(epkgs: [ epkgs.vterm ])
);
emacs-vterm = ((emacsPackagesNgGen emacsPgtkGcc).emacsWithPackages
(epkgs: [ epkgs.vterm ]));
in
{
in {
environment.systemPackages = [
# Monitoring
htop
@ -42,7 +39,7 @@ in
# Development
git
direnv
lorri
nix-direnv
podman-compose
gnumake
gitAndTools.pre-commit

11
overlays/nix-direnv.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
with pkgs;
{
nixpkgs.overlays = [
(self: super: {
nix-direnv = super.nix-direnv.override { enableFlakes = true; };
})
];
}