Compare commits

..

10 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
4 changed files with 24 additions and 11 deletions

View file

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

View file

@ -1,5 +1,9 @@
# Home Manager module # Home Manager module
packages: lib: inputs: { {
packages,
lib,
inputs,
}: {
config, config,
pkgs, pkgs,
... ...
@ -18,9 +22,7 @@ packages: lib: inputs: {
specialArgs = { specialArgs = {
inherit pkgs lib inputs; inherit pkgs lib inputs;
}; };
modules = [ modules = import ../../modules/modules.nix {inherit pkgs lib;};
{imports = import ../../modules/modules.nix {inherit pkgs lib;};}
];
}; };
in { in {
imports = [ imports = [

View file

@ -1,5 +1,9 @@
# NixOS module # NixOS module
packages: lib: inputs: { {
packages,
lib,
inputs,
}: {
config, config,
pkgs, pkgs,
... ...
@ -18,9 +22,7 @@ packages: lib: inputs: {
specialArgs = { specialArgs = {
inherit pkgs lib inputs; inherit pkgs lib inputs;
}; };
modules = [ modules = import ../../modules/modules.nix {inherit pkgs lib;};
{imports = import ../../modules/modules.nix {inherit pkgs lib;};}
];
}; };
in { in {
imports = [ imports = [

View file

@ -1,3 +1,6 @@
{ {
imports = [./options.nix ./config.nix]; imports = [
./options.nix
./config.nix
];
} }