enable neovim + ranger
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
# Because no imports/options/config is defined explicitly, everything is treated as config
|
# Because no imports/options/config is defined explicitly, everything is treated as config
|
||||||
# { inputs, lib, ... }: { ... } gets turned into { inputs, lib, ... }: { config = { ... }; } implicitly
|
# { inputs, lib, ... }: { ... } gets turned into { inputs, lib, ... }: { config = { ... }; } implicitly
|
||||||
let
|
let
|
||||||
cfgnv = config.modules.neovim;
|
|
||||||
in rec {
|
in rec {
|
||||||
|
|
||||||
# Every module is a nix expression, specifically a function { inputs, lib, ... }: { ... }
|
# Every module is a nix expression, specifically a function { inputs, lib, ... }: { ... }
|
||||||
@ -78,12 +78,20 @@ in rec {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
neovim = {
|
||||||
|
enable = true;
|
||||||
|
alias = true;
|
||||||
|
};
|
||||||
|
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
autostart = true;
|
autostart = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
ranger.enable = true;
|
ranger = {
|
||||||
|
enable = true;
|
||||||
|
preview = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Gnome terminal config
|
# TODO: Gnome terminal config
|
||||||
@ -121,8 +129,6 @@ in rec {
|
|||||||
|
|
||||||
# Environment variables
|
# Environment variables
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = (if cfgnv.enable then "nvim" else "nano");
|
|
||||||
VISUAL = (if cfgnv.enable then "nvim" else "nano");
|
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
|
|
||||||
DOCKER_BUILDKIT = 1;
|
DOCKER_BUILDKIT = 1;
|
||||||
|
Reference in New Issue
Block a user