feat: neovim
This commit is contained in:
parent
1a288babfc
commit
cb6e5d21d1
8 changed files with 67 additions and 9 deletions
|
@ -20,7 +20,6 @@
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
})
|
})
|
||||||
(import ./overlays/jetbrains.nix {inherit inputs;})
|
(import ./overlays/jetbrains.nix {inherit inputs;})
|
||||||
(import ./overlays/marleyvim.nix {inherit inputs;})
|
|
||||||
(import ./overlays/wezterm.nix {inherit inputs;})
|
(import ./overlays/wezterm.nix {inherit inputs;})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
./programs
|
./programs
|
||||||
|
|
||||||
|
./profiles.nix
|
||||||
./home.nix
|
./home.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
28
modules/base/profiles.nix
Normal file
28
modules/base/profiles.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
marleylib,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.marleycfg.profiles;
|
||||||
|
|
||||||
|
inherit (marleylib.module) enabled;
|
||||||
|
in {
|
||||||
|
marleyos = lib.mkMerge [
|
||||||
|
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
fish = enabled;
|
||||||
|
neovim = enabled;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
(lib.optionalAttrs cfg.desktop {})
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
(lib.optionalAttrs cfg.server {})
|
||||||
|
];
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./fish.nix
|
./fish.nix
|
||||||
|
./neovim.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,14 +9,8 @@ in {
|
||||||
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
options.marleyos.programs.neovim.enable = lib.mkEnableOption "neovim";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
nvim
|
neovim
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = rec {
|
|
||||||
EDITOR = "nvim";
|
|
||||||
VISUAL = "${EDITOR}";
|
|
||||||
SUDO_EDITOR = "${EDITOR}";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -42,6 +42,7 @@ in {
|
||||||
glow = enabled;
|
glow = enabled;
|
||||||
nemo = enabled;
|
nemo = enabled;
|
||||||
neo = enabled;
|
neo = enabled;
|
||||||
|
neovim = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
./man.nix
|
./man.nix
|
||||||
./nemo.nix
|
./nemo.nix
|
||||||
./neo.nix
|
./neo.nix
|
||||||
|
./neovim.nix
|
||||||
./nh.nix
|
./nh.nix
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
|
|
||||||
|
|
33
modules/home/programs/neovim.nix
Normal file
33
modules/home/programs/neovim.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
marleylib,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (marleylib.module) mkEnableOption';
|
||||||
|
|
||||||
|
cfg = config.marleyos.programs.neovim;
|
||||||
|
osCfg = osConfig.marleyos.programs.neovim;
|
||||||
|
in {
|
||||||
|
options.marleyos.programs.neovim.enable =
|
||||||
|
mkEnableOption' "neovim" osCfg.enable;
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
nixpkgs.overlays = [
|
||||||
|
(import ../../../overlays/marleyvim.nix {inherit inputs;})
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nvim
|
||||||
|
];
|
||||||
|
|
||||||
|
home.sessionVariables = rec {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
VISUAL = "${EDITOR}";
|
||||||
|
SUDO_EDITOR = "${EDITOR}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue