Compare commits

..

9 commits

Author SHA1 Message Date
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 = {
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;
neovim-flake =
lib.warn ''
@ -42,7 +45,10 @@
};
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;
neovim-flake =
lib.warn ''

View file

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

View file

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

View file

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