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 = {
|
options.snowhawk.user = {
|
||||||
enable = lib.mkEnableOption "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 {
|
config = lib.mkIf cfg.enable {
|
||||||
home.username = lib.mkDefault "ravenshade";
|
home.username = lib.mkDefault cfg.username;
|
||||||
home.homeDirectory = lib.mkDefault "/home/ravenshade";
|
home.homeDirectory = lib.mkDefault "/home/${cfg.username}";
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.homeDirectory}/.cargo/bin"
|
"${config.home.homeDirectory}/.cargo/bin"
|
||||||
|
|
|
@ -9,13 +9,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||||
};
|
};
|
||||||
snowhawk.user.enable = false;
|
|
||||||
snowhawk.defaultPrograms.enable = false;
|
snowhawk.defaultPrograms.enable = false;
|
||||||
snowhawk.ssh.enable = true;
|
snowhawk.ssh.enable = true;
|
||||||
|
|
||||||
|
snowhawk.user.username = "val";
|
||||||
home.username = "val";
|
|
||||||
home.homeDirectory = "/home/val";
|
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.homeDirectory}/.cargo/bin"
|
"${config.home.homeDirectory}/.cargo/bin"
|
||||||
|
|
|
@ -9,12 +9,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
package = inputs.neovim-overlay.packages.${pkgs.system}.default;
|
||||||
};
|
};
|
||||||
snowhawk.user.enable = false;
|
|
||||||
snowhawk.defaultPrograms.enable = false;
|
snowhawk.defaultPrograms.enable = false;
|
||||||
|
|
||||||
|
snowhawk.user.username = "zynh";
|
||||||
home.username = "zynh";
|
|
||||||
home.homeDirectory = "/home/zynh";
|
|
||||||
|
|
||||||
home.sessionPath = [
|
home.sessionPath = [
|
||||||
"${config.home.homeDirectory}/.cargo/bin"
|
"${config.home.homeDirectory}/.cargo/bin"
|
||||||
|
|
Loading…
Reference in New Issue