nixos/home/modules/user.nix

33 lines
719 B
Nix
Raw Normal View History

2024-05-31 00:15:40 +00:00
{ lib, config, ... }:
let
cfg = config.snowhawk.user;
in
{
options.snowhawk.user = {
enable = lib.mkEnableOption "user";
2024-07-11 21:35:03 +00: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-31 00:15:40 +00:00
};
2024-07-11 21:35:03 +00:00
config = lib.mkIf cfg.enable {
home.username = lib.mkDefault cfg.username;
home.homeDirectory = lib.mkDefault "/home/${cfg.username}";
2024-06-28 15:27:44 +00:00
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
2024-10-15 22:17:34 +00:00
"${config.home.homeDirectory}/.dotnet/tools"
2024-06-28 15:27:44 +00:00
];
2024-08-07 11:41:17 +00:00
snowhawk.tmux.sessionizer.paths = [
"~"
"~/.config"
];
2024-05-31 00:15:40 +00:00
};
}