Try to use nvim as $EDITOR
This commit is contained in:
parent
543be7d2b4
commit
4013b313d0
3 changed files with 17 additions and 3 deletions
|
@ -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
13
config/env.nix
Normal 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
|
||||
'';
|
||||
}
|
|
@ -104,11 +104,11 @@ desktop: {pkgs, ...}: {
|
|||
userName = "mdelenk@hs-mittweida.de";
|
||||
primary = false;
|
||||
};
|
||||
};
|
||||
config.systemd.user.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
home = {
|
||||
sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
shellAliases = {
|
||||
vim = "nvim";
|
||||
cat = "bat";
|
||||
|
|
Loading…
Reference in a new issue