beginning of big refactoring

This commit is contained in:
Charlie Root 2024-07-20 13:18:01 +02:00
commit 7d73d14ea5
68 changed files with 358 additions and 2818 deletions

View file

@ -1,4 +1,3 @@
# credits to raf, his repo is in the README.md!
{
pkgs,
config,
@ -6,10 +5,12 @@
inputs,
...
}: let
cfg = config.modules.system.programs.editors.neovim;
inherit (builtins) filter map toString elem;
inherit (lib.filesystem) listFilesRecursive;
inherit (lib.strings) hasSuffix;
inherit (lib.lists) concatLists;
inherit (lib) mkIf;
mkNeovimModule = {
path,
@ -23,14 +24,16 @@
nvf = inputs.neovim-flake;
in {
environment.systemPackages = with pkgs; [
typstyle
];
imports = concatLists [
# neovim-flake home-manager module
[nvf.nixosModules.default]
# construct this entire directory as a module
# which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;})
];
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
typstyle
];
imports = concatLists [
# neovim-flake home-manager module
[nvf.nixosModules.default]
# construct this entire directory as a module
# which means all default.nix files will be imported automtically
(mkNeovimModule {path = ./.;})
];
};
}