20 lines
364 B
Nix
20 lines
364 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
cfg = config.snowhawk.user;
|
|
in
|
|
{
|
|
options.snowhawk.user = {
|
|
enable = lib.mkEnableOption "user";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.username = lib.mkDefault "ravenshade";
|
|
home.homeDirectory = lib.mkDefault "/home/ravenshade";
|
|
|
|
home.sessionPath = [
|
|
"${config.home.homeDirectory}/.cargo/bin"
|
|
];
|
|
};
|
|
}
|