nix/home/util/name.nix
2024-09-11 10:15:54 +10:00

17 lines
257 B
Nix

{
lib,
config,
...
}: let
inherit (lib) mkOption;
in {
options.mainUser = mkOption {
type = lib.types.str;
};
config.home = let
inherit (config) mainUser;
in {
username = mainUser;
homeDirectory = "/home/${mainUser}";
};
}