apps scope, pollute specialargs more, switch back to firefox

This commit is contained in:
atagen 2025-08-22 13:44:33 +10:00
parent 5003fc7953
commit 39ee6aa252
16 changed files with 253 additions and 366 deletions

View file

@ -21,22 +21,27 @@ in
scope = import ./scope.nix { inherit lib; };
mainUser = info.username;
getPkgs = builtins.attrValues;
getFlakePkg = p: p.packages.${info.system}.default;
getFlakePkg' = p: n: p.packages.${info.system}.${n};
};
modules = [
inputs.arbys.nixosModules.arbys
inputs.hjem.nixosModules.hjem
({ 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"
]);
})
(
{ 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" ])
]