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/power.nix
./modules/cachix.nix ./modules/cachix.nix
./overlays/emacs.nix ./overlays/emacs.nix
./overlays/nix-direnv.nix
]; ];
} }

View File

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

View File

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