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: {
|
outputs = { self, nixpkgs, neovim, ... }@inputs: {
|
||||||
nixosModules.neovim = { config, lib, pkgs,... }:
|
nixosModules.neovim ={
|
||||||
let
|
config = {
|
||||||
theme = "dracula"; # Change ici pour "gruvbox" ou autre
|
environment.systemPackages = [
|
||||||
themePackage = {
|
inputs.neovim.packages.${pkgs.system}.neovim
|
||||||
"dracula" = inputs.plugin-dracula;
|
];
|
||||||
"gruvbox" = inputs.plugin-gruvbox;
|
programs.neovim = {
|
||||||
"tokyonight" = null; # Pas de flake pour tokyonight
|
enable = true;
|
||||||
}.${theme} or null;
|
configure.customRC = ''
|
||||||
in
|
set runtimepath+=${themePackage}
|
||||||
{
|
colorscheme ${theme}
|
||||||
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}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user