Files
Olympus/home-manager/default.nix
2025-12-18 12:08:45 -06:00

37 lines
801 B
Nix

{ config, lib, ... }: {
imports = [
];
options.homeconfig = with lib; {
host = mkOption {
type = with types; nullOr str;
default = null;
};
name = mkOption {
type = with types; nullOr str;
default = null;
};
graphical = mkOption {
type = with types; bool;
default = true;
};
standalone.enable = mkOption {
type = with types; bool;
default = false;
};
};
config = {
home.username = lib.mkDefault config.homeconfig.name;
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
programs.home-manager.enable = config.homeconfig.standalone.enable;
};
}