Compare commits
3 Commits
3c05f5e5a9
...
c945d00f61
Author | SHA1 | Date |
---|---|---|
Zynh Ludwig | c945d00f61 | |
Zynh Ludwig | 727b016567 | |
Zynh Ludwig | 2954a57cf7 |
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue