Compare commits

...

3 Commits

3 changed files with 11 additions and 10 deletions

View File

@ -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 {
home.username = lib.mkDefault "ravenshade";
home.homeDirectory = lib.mkDefault "/home/ravenshade";
home.username = lib.mkDefault cfg.username;
home.homeDirectory = lib.mkDefault "/home/${cfg.username}";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"

View File

@ -9,13 +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";
home.homeDirectory = "/home/val";
snowhawk.user.username = "val";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"

View File

@ -9,12 +9,9 @@
enable = true;
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
};
snowhawk.user.enable = false;
snowhawk.defaultPrograms.enable = false;
home.username = "zynh";
home.homeDirectory = "/home/zynh";
snowhawk.user.username = "zynh";
home.sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"