nixos/home/modules/user.nix

33 lines
719 B
Nix
Raw Normal View History

2024-05-30 17:15:40 -07:00
{ lib, config, ... }:
let
cfg = config.snowhawk.user;
in
{
options.snowhawk.user = {
enable = lib.mkEnableOption "user";
2024-07-11 14:35:03 -07:00
username = lib.mkOption {
default = "ravenshade";
example = "zynh";
description = "the username to use. also defines the default home folder as /home/\${username}";
type = lib.types.str;
};
2024-05-30 17:15:40 -07:00
};
2024-07-11 14:35:03 -07:00
config = lib.mkIf cfg.enable {
home.username = lib.mkDefault cfg.username;
home.homeDirectory = lib.mkDefault "/home/${cfg.username}";
2024-06-28 08:27:44 -07:00
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
2024-10-15 15:17:34 -07:00
"${config.home.homeDirectory}/.dotnet/tools"
2024-06-28 08:27:44 -07:00
];
2024-08-07 04:41:17 -07:00
snowhawk.tmux.sessionizer.paths = [
"~"
"~/.config"
];
2024-05-30 17:15:40 -07:00
};
}