feat: neovim

This commit is contained in:
punkfairie 2025-05-27 18:02:49 -07:00
parent 1a288babfc
commit cb6e5d21d1
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
8 changed files with 67 additions and 9 deletions

View file

@ -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;})
]; ];
}; };

View file

@ -7,6 +7,7 @@
./programs ./programs
./profiles.nix
./home.nix ./home.nix
]; ];
} }

28
modules/base/profiles.nix Normal file
View 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 {})
];
}

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./fish.nix ./fish.nix
./neovim.nix
]; ];
} }

View file

@ -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}";
};
}; };
} }

View file

@ -42,6 +42,7 @@ in {
glow = enabled; glow = enabled;
nemo = enabled; nemo = enabled;
neo = enabled; neo = enabled;
neovim = enabled;
}; };
services = { services = {

View file

@ -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

View 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}";
};
};
}