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