refactor: gigantic refactor

This commit is contained in:
leonhard committed 2026-11-12 13:26:08 +01:00
1 parent d1e2bde503
commit 0474f7bbb4
50 files changed
+232 -207

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
{
config,
lib,
inputs,
...
}:
{
nix =
let
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
in
{
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
# set the path for channels compat
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
settings.experimental-features = "nix-command flakes";
channels.enable = false;
};
programs.home-manager.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "25.11";
}
+25
View File
@@ -0,0 +1,25 @@
{
pkgs,
inputs,
...
}:
let
inherit (inputs.home-manager.lib) homeManagerConfiguration;
extraSpecialArgs = { inherit inputs; };
in
{
leonhard = homeManagerConfiguration {
inherit pkgs extraSpecialArgs;
modules = [
./base.nix
../home
../options.nix
{
nix-leonhard.graphical = false;
nix-leonhard.neovim.enable = true;
nix-leonhard.neovim.typst.enable = true;
}
];
};
}