Try to use nvim as $EDITOR

This commit is contained in:
Charlotte 🦝 Delenk 2022-08-14 19:52:12 +01:00
parent 543be7d2b4
commit 4013b313d0
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 17 additions and 3 deletions

View file

@ -14,6 +14,7 @@
./services/restic.nix
./specialization.nix
./services/promtail.nix
./env.nix
];
services.openssh.enable = true;
environment.systemPackages = with pkgs; [

13
config/env.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }: {
config.environment.extraInit =
let
systemdBin = lib.getBin config.systemd.package;
in
''
set -a
. /dev/fd/0 <<EOF
$(${systemdBin}/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
EOF
set +a
'';
}

View file

@ -105,10 +105,10 @@ desktop: {pkgs, ...}: {
primary = false;
};
};
home = {
sessionVariables = {
config.systemd.user.sessionVariables = {
EDITOR = "nvim";
};
home = {
shellAliases = {
vim = "nvim";
cat = "bat";