Add extra function for lib, and refactor with loadImports

This commit is contained in:
ulic-youthlic 2025-07-11 21:04:42 +08:00
parent 317a2b4a28
commit 2c997cddce
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
28 changed files with 111 additions and 204 deletions

View file

@ -1,14 +1,14 @@
{inputs, ...}: {
{
lib,
inputs,
...
}: {
imports =
(with inputs; [
sops-nix.homeManagerModules.sops
betterfox-nix.homeManagerModules.betterfox
])
++ [
./programs
./xdg-dirs.nix
./i18n
];
++ lib.youthlic.loadImports ./.;
config = {
programs.direnv = {

View file

@ -1,21 +1,3 @@
{...}: {
imports = [
./rustypaste-cli.nix
./atuin.nix
./bash.nix
./fish.nix
./kvm.nix
./starship
./gpg
./sops.nix
./git.nix
./helix
./jujutsu.nix
./yazi.nix
./zoxide.nix
./fzf.nix
./eza.nix
./ion.nix
./awscli.nix
];
{lib, ...}: {
imports = lib.youthlic.loadImports ./.;
}