obliterate home-manager, rename some elements
This commit is contained in:
parent
5575604452
commit
0eb2b9e796
48 changed files with 1279 additions and 1311 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue