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
|
||||
'';
|
||||
}
|
|
@ -105,10 +105,10 @@ desktop: {pkgs, ...}: {
|
|||
primary = false;
|
||||
};
|
||||
};
|
||||
home = {
|
||||
sessionVariables = {
|
||||
config.systemd.user.sessionVariables = {
|
||||
EDITOR = "nvim";
|
||||
};
|
||||
home = {
|
||||
shellAliases = {
|
||||
vim = "nvim";
|
||||
cat = "bat";
|
||||
|
|
Loading…
Reference in a new issue