ooknet/modules/nixos/base/home-manager.nix

27 lines
501 B
Nix

{
inputs,
inputs',
self,
self',
lib,
config,
hozen,
ook,
...
}: let
inherit (lib) mkIf;
inherit (config.ooknet.host) admin;
in {
config = mkIf admin.homeManager {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "hm.old";
verbose = true;
extraSpecialArgs = {inherit ook hozen inputs inputs' self self';};
users.${admin.name} = {
imports = ["${self}/modules/home/base"];
};
};
};
}