Compare commits

..

11 commits

Author SHA1 Message Date
Ching Pei Yang
38c9d9ca14
Merge 3c3b08ff77 into b6a49b299a 2024-12-29 18:08:37 +00:00
Ching Pei Yang
3c3b08ff77
nixos: use attrset for long function args 2024-12-29 19:08:31 +01:00
Ching Pei Yang
dd567ccb7e
home-manager: use attr for long function args 2024-12-29 19:08:31 +01:00
Ching Pei Yang
8280ac0feb
nixos: remove redundant import module 2024-12-29 19:08:31 +01:00
Ching Pei Yang
1e94b7920d
home-manager: remove redundant import module 2024-12-29 19:08:31 +01:00
Ching Pei Yang
d0f942d12c
lib: remove anythingConcatLists 2024-12-29 19:08:30 +01:00
Ching Pei Yang
498d3d9370
nixos: use proper submodule type for settings 2024-12-29 19:08:30 +01:00
Ching Pei Yang
4078288bf8
module: remove redundant code
the bulk of the build step is moved to modules/wrapper/build
2024-12-29 19:08:30 +01:00
Ching Pei Yang
0bf8b4fce5
home-manager: use proper submodule type for settings 2024-12-29 19:08:30 +01:00
Ching Pei Yang
9f93f9f487
wrapper: add built package as option 2024-12-29 19:08:30 +01:00
Ching Pei Yang
e11c8aa7a0
wrapper: rename build dir to environemnt 2024-12-22 21:46:17 +01:00
5 changed files with 19 additions and 12 deletions

View file

@ -1729,11 +1729,11 @@
"plugin-run-nvim": {
"flake": false,
"locked": {
"lastModified": 1735501787,
"narHash": "sha256-CFOyOARCLQiMOhFPeqz8n2ULyaaRxRZrOk0FCibjuIM=",
"lastModified": 1735130195,
"narHash": "sha256-OaOSYyXSNCl9kJJVKhy0L4M06CQFc0NtZ8+AIgKBPik=",
"owner": "diniamo",
"repo": "run.nvim",
"rev": "9015c9cece816ccf10a185b420f6e345fd990802",
"rev": "5888f31c5faf4776e598c0665470f5445510c59e",
"type": "github"
},
"original": {

View file

@ -31,7 +31,10 @@
};
homeManagerModules = {
nvf = import ./flake/modules/home-manager.nix {inherit lib self;};
nvf = import ./flake/modules/home-manager.nix {
inherit lib inputs;
inherit (self) packages;
};
default = self.homeManagerModules.nvf;
neovim-flake =
lib.warn ''
@ -42,7 +45,10 @@
};
nixosModules = {
nvf = import ./flake/modules/nixos.nix {inherit lib self;};
nvf = import ./flake/modules/nixos.nix {
inherit lib inputs;
inherit (self) packages;
};
default = self.nixosModules.nvf;
neovim-flake =
lib.warn ''

View file

@ -1,13 +1,13 @@
# Home Manager module
{
self,
packages,
lib,
inputs,
}: {
config,
pkgs,
...
}: let
inherit (self) packages inputs;
inherit (lib) maintainers;
inherit (lib.modules) mkIf mkAliasOptionModule;
inherit (lib.lists) optional;
@ -84,7 +84,7 @@ in {
};
config = mkIf cfg.enable {
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
home = {
sessionVariables = mkIf cfg.defaultEditor {EDITOR = "nvim";};

View file

@ -1,13 +1,13 @@
# NixOS module
{
self,
packages,
lib,
inputs,
}: {
config,
pkgs,
...
}: let
inherit (self) inputs packages;
inherit (lib) maintainers;
inherit (lib.modules) mkIf mkOverride mkAliasOptionModule;
inherit (lib.lists) optional;
@ -84,7 +84,7 @@ in {
};
config = mkIf cfg.enable {
programs.nvf.finalPackage = cfg.settings.vim.build.finalPackage;
programs.nvf.finalPackage = config.programs.nvf.settings.vim.build.finalPackage;
environment = {
variables.EDITOR = mkIf cfg.defaultEditor (mkOverride 900 "nvim");

View file

@ -1,7 +1,8 @@
{lib}: let
inherit (lib.options) mergeEqualOption;
inherit (lib.strings) isString stringLength match;
inherit (lib.strings) isString;
inherit (lib.types) listOf mkOptionType;
inherit (builtins) stringLength match;
in {
mergelessListOf = elemType: let
super = listOf elemType;