user: username option
This commit is contained in:
parent
2954a57cf7
commit
727b016567
2 changed files with 11 additions and 6 deletions
|
@ -6,11 +6,18 @@ in
|
|||
{
|
||||
options.snowhawk.user = {
|
||||
enable = lib.mkEnableOption "user";
|
||||
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable rec {
|
||||
home.username = lib.mkDefault "ravenshade";
|
||||
home.homeDirectory = lib.mkDefault "/home/${config.home.username}";
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.username = lib.mkDefault cfg.username;
|
||||
home.homeDirectory = lib.mkDefault "/home/${cfg.username}";
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
|
|
|
@ -9,12 +9,10 @@
|
|||
enable = true;
|
||||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||
};
|
||||
snowhawk.user.enable = false;
|
||||
snowhawk.defaultPrograms.enable = false;
|
||||
snowhawk.ssh.enable = true;
|
||||
|
||||
|
||||
home.username = "val";
|
||||
snowhawk.user.username = "val";
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.cargo/bin"
|
||||
|
|
Loading…
Reference in a new issue