mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-08 18:13:52 +00:00
19 lines
393 B
Nix
19 lines
393 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|
|
|