add nixvim as default EDITOR
This commit is contained in:
parent
9e3bff28fb
commit
b9123f5666
|
@ -16,9 +16,22 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [
|
environment = {
|
||||||
less
|
systemPackages = with pkgs; [
|
||||||
wyrdgard.neovim
|
less
|
||||||
];
|
wyrdgard.neovim
|
||||||
|
];
|
||||||
|
variables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
SUDOEDITOR = "nvim";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
wyrdgard.home = {
|
||||||
|
extraOptions = {
|
||||||
|
# Use Neovim for Git diffs.
|
||||||
|
programs.fish.shellAliases.vimdiff = "nvim -d";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ let
|
||||||
pkgs.runCommandNoCC "propagated-icon"
|
pkgs.runCommandNoCC "propagated-icon"
|
||||||
{
|
{
|
||||||
passthru = {
|
passthru = {
|
||||||
fileName = cfg.icon.fileName;
|
inherit (fileName);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
|
|
|
@ -30,11 +30,11 @@ with lib.wyrdgard;
|
||||||
time = "10:00";
|
time = "10:00";
|
||||||
};
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = enabled;
|
bluetooth = enabled;
|
||||||
gpu.nvidia = enabled;
|
gpu.nvidia = enabled;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue