This commit is contained in:
Amaury JOLY
2026-03-25 19:01:19 +01:00
parent c7262c7c68
commit b2038c9105
16 changed files with 795 additions and 27 deletions

View File

@@ -0,0 +1,30 @@
{ lib, customConfig, ... }:
let
username = customConfig.username;
dotconfigPath = ../../dotconfig;
dotconfigEntries = lib.filterAttrs (name: _: !(lib.hasPrefix "." name)) (builtins.readDir dotconfigPath);
mkConfigEntry = name: type:
lib.nameValuePair name (
{
source = dotconfigPath + "/${name}";
force = true;
}
// lib.optionalAttrs (type == "directory") {
recursive = true;
}
);
in
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.backupFileExtension = "hm-backup";
home-manager.users.${username} = {
home.stateVersion = "24.05";
xdg.enable = true;
xdg.configFile = lib.mapAttrs' mkConfigEntry dotconfigEntries;
};
}