obliterate home-manager, rename some elements

This commit is contained in:
atagen 2025-08-13 20:27:25 +10:00
parent 5575604452
commit 226dad50fb
48 changed files with 1268 additions and 1314 deletions

View file

@ -13,6 +13,7 @@ in
specialArgs = {
inherit inputs;
inherit (info) system;
# annoyingly, this is the only dependency on `system` from the entrypoint
localPkgs = lib.packagesFromDirectoryRecursive {
inherit (inputs.nixpkgs.legacyPackages.${info.system}) callPackage;
directory = ../pkgs;
@ -22,10 +23,22 @@ in
getPkgs = builtins.attrValues;
};
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.arbys.nixosModules.arbys
inputs.hjem.nixosModules.hjem
(lib.mkAliasOptionModule [ "hm" ] [ "home-manager" "users" info.username ])
(lib.mkAliasOptionModule [ "home" ] [ "hjem" "users" info.username ])
({ scope, ... }: scope "hjem" {
users.${info.username}.enable = true;
extraModules = [
inputs.hjem-rum.hjemModules.hjem-rum
]
# alias base hjem options to `rum` so we can alias them all together after
++ (map (f: lib.mkAliasOptionModule [ "rum" f ] [ f ]) [
"packages"
"files"
"xdg"
]);
})
# alias hjem-rum options to `user`
(lib.mkAliasOptionModule [ "user" ] [ "hjem" "users" info.username "rum" ])
]
++ (recursivelyImport info.imports);
}