2025-05-20 20:05:23 +02:00
|
|
|
{
|
|
|
|
|
lib,
|
2025-12-13 21:41:52 +01:00
|
|
|
config,
|
2025-05-20 20:05:23 +02:00
|
|
|
options,
|
|
|
|
|
...
|
|
|
|
|
}:
|
2025-12-13 21:41:52 +01:00
|
|
|
with lib; let
|
|
|
|
|
inherit (config.fireproof) username;
|
|
|
|
|
in {
|
2025-05-20 20:05:23 +02:00
|
|
|
options.fireproof = {
|
|
|
|
|
home-manager = lib.mkOption {
|
|
|
|
|
type = options.home-manager.users.type.nestedTypes.elemType;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
config = {
|
|
|
|
|
home-manager = {
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
|
};
|
|
|
|
|
home-manager.users.${username} = mkAliasDefinitions options.fireproof.home-manager;
|
|
|
|
|
|
|
|
|
|
# set the same version of home-manager as the system
|
|
|
|
|
fireproof.home-manager.home.stateVersion = "24.11";
|
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
|
};
|
|
|
|
|
}
|