nixos/home/modules/user.nix

32 lines
668 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-08-07 11:41:17 +00:00
snowhawk.tmux.sessionizer.paths = [
"~"
"~/.config"
];
2024-05-31 00:15:40 +00:00
};
}