1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-09 08:23:52 +00:00
ultima/modules/home/misc/home-manager/default.nix

19 lines
393 B
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ lib, config, userName, stateVersion ? null, True, ... }:
with lib;
let cfg = config.module.misc.home-manager;
in {
options = { module.misc.home-manager = { enable = mkEnableOption ""; }; };
config = mkIf cfg.enable {
programs.home-manager = True;
home = {
username = userName;
homeDirectory = "/home/${userName}";
stateVersion = stateVersion;
};
};
}