mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
26 lines
607 B
Nix
26 lines
607 B
Nix
{
|
|
lib,
|
|
config,
|
|
options,
|
|
...
|
|
}:
|
|
with lib; let
|
|
inherit (config.fireproof) username;
|
|
in {
|
|
options.fireproof = {
|
|
home-manager = lib.mkOption {
|
|
type = options.home-manager.users.type.nestedTypes.elemType;
|
|
};
|
|
};
|
|
config = rec {
|
|
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
|
|
system.stateVersion = lib.mkDefault "24.11";
|
|
fireproof.home-manager.home.stateVersion = system.stateVersion;
|
|
};
|
|
}
|