beginning of big refactoring
This commit is contained in:
parent
6a5bf3373a
commit
e09e7277eb
68 changed files with 358 additions and 2818 deletions
|
@ -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 = ./.;})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue