mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-09 17:49:49 +01:00
Compare commits
13 commits
38c9d9ca14
...
54732875b5
Author | SHA1 | Date | |
---|---|---|---|
|
54732875b5 | ||
|
d14c5e57db | ||
|
6daec44f40 | ||
|
835b775fa9 | ||
|
fb96ccb85b | ||
|
27f3430296 | ||
|
f8780947b7 | ||
|
e9cc77dff7 | ||
|
dc5551b050 | ||
|
2217565730 | ||
|
4e867c5425 | ||
ba3173d363 | |||
|
c3b51df4a6 |
5 changed files with 12 additions and 19 deletions
|
@ -1729,11 +1729,11 @@
|
||||||
"plugin-run-nvim": {
|
"plugin-run-nvim": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1735130195,
|
"lastModified": 1735501787,
|
||||||
"narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=",
|
"narHash": "sha256-CFOyOARCLQiMOhFPeqz8n2ULyaaRxRZrOk0FCibjuIM=",
|
||||||
"owner": "diniamo",
|
"owner": "diniamo",
|
||||||
"repo": "run.nvim",
|
"repo": "run.nvim",
|
||||||
"rev": "5888f31c5faf4776e598c0665470f5445510c59e",
|
"rev": "9015c9cece816ccf10a185b420f6e345fd990802",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
10
flake.nix
10
flake.nix
|
@ -31,10 +31,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
homeManagerModules = {
|
homeManagerModules = {
|
||||||
nvf = import ./flake/modules/home-manager.nix {
|
nvf = import ./flake/modules/home-manager.nix {inherit lib self;};
|
||||||
inherit lib inputs;
|
|
||||||
inherit (self) packages;
|
|
||||||
};
|
|
||||||
default = self.homeManagerModules.nvf;
|
default = self.homeManagerModules.nvf;
|
||||||
neovim-flake =
|
neovim-flake =
|
||||||
lib.warn ''
|
lib.warn ''
|
||||||
|
@ -45,10 +42,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixosModules = {
|
nixosModules = {
|
||||||
nvf = import ./flake/modules/nixos.nix {
|
nvf = import ./flake/modules/nixos.nix {inherit lib self;};
|
||||||
inherit lib inputs;
|
|
||||||
inherit (self) packages;
|
|
||||||
};
|
|
||||||
default = self.nixosModules.nvf;
|
default = self.nixosModules.nvf;
|
||||||
neovim-flake =
|
neovim-flake =
|
||||||
lib.warn ''
|
lib.warn ''
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Home Manager module
|
# Home Manager module
|
||||||
{
|
{
|
||||||
packages,
|
self,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
|
||||||
}: {
|
}: {
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (self) packages inputs;
|
||||||
inherit (lib) maintainers;
|
inherit (lib) maintainers;
|
||||||
inherit (lib.modules) mkIf mkAliasOptionModule;
|
inherit (lib.modules) mkIf mkAliasOptionModule;
|
||||||
inherit (lib.lists) optional;
|
inherit (lib.lists) optional;
|
||||||
|
@ -84,7 +84,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
|
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
|
sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# NixOS module
|
# NixOS module
|
||||||
{
|
{
|
||||||
packages,
|
self,
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
|
||||||
}: {
|
}: {
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
inherit (self) inputs packages;
|
||||||
inherit (lib) maintainers;
|
inherit (lib) maintainers;
|
||||||
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
|
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
|
||||||
inherit (lib.lists) optional;
|
inherit (lib.lists) optional;
|
||||||
|
@ -84,7 +84,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
|
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
|
variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
{lib}: let
|
{lib}: let
|
||||||
inherit (lib.options) mergeEqualOption;
|
inherit (lib.options) mergeEqualOption;
|
||||||
inherit (lib.strings) isString;
|
inherit (lib.strings) isString stringLength match;
|
||||||
inherit (lib.types) listOf mkOptionType;
|
inherit (lib.types) listOf mkOptionType;
|
||||||
inherit (builtins) stringLength match;
|
|
||||||
in {
|
in {
|
||||||
mergelessListOf = elemType: let
|
mergelessListOf = elemType: let
|
||||||
super = listOf elemType;
|
super = listOf elemType;
|
||||||
|
|
Loading…
Reference in a new issue