1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-08 17:53:53 +00:00
ultima/modules/home/misc/home-manager/default.nix
2024-11-21 18:24:15 +09:00

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;
};
};
}