ui
This commit is contained in:
parent
46418935d9
commit
e4b0e10c80
39
flake.nix
39
flake.nix
@ -20,30 +20,19 @@
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, neovim, ... }@inputs: {
|
||||
nixosModules.neovim = { config, lib, pkgs,... }:
|
||||
let
|
||||
theme = "dracula"; # Change ici pour "gruvbox" ou autre
|
||||
themePackage = {
|
||||
"dracula" = inputs.plugin-dracula;
|
||||
"gruvbox" = inputs.plugin-gruvbox;
|
||||
"tokyonight" = null; # Pas de flake pour tokyonight
|
||||
}.${theme} or null;
|
||||
in
|
||||
{
|
||||
options.neovim.enable = lib.mkEnableOption "Enable Neovim";
|
||||
|
||||
config = {
|
||||
environment.systemPackages = [
|
||||
inputs.neovim.packages.${pkgs.system}.neovim
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
configure.customRC = ''
|
||||
set runtimepath+=${themePackage}
|
||||
colorscheme ${theme}
|
||||
'';
|
||||
nixosModules.neovim ={
|
||||
config = {
|
||||
environment.systemPackages = [
|
||||
inputs.neovim.packages.${pkgs.system}.neovim
|
||||
];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
configure.customRC = ''
|
||||
set runtimepath+=${themePackage}
|
||||
colorscheme ${theme}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user