Compare commits

...
3 Commits
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -1,17 +1,17 @@
{ config, lib, ... }:
{
options = {
options.shell = {
name = lib.mkOption {
type = lib.types.str;
#default = "nyx";
default = "nyx";
};
homeDirectory = lib.mkOption {
type = lib.types.path;
default = "/home/${config.name}";
default = "/home/${config.shell.name}";
};
email = lib.mkOption {
type = lib.types.str;
#default = "${config.name}@configureme.guv";
default = "${config.shell.name}@configureme.guv";
};
};
}
+3 -3
View File
@@ -2,8 +2,8 @@
{ pkgs, config, ... }:
let
name = "${config.name}";
homeDir = "${config.homeDirectory}";
name = "${config.shell.name}";
homeDir = "${config.shell.homeDirectory}";
myAliases = {
ll = "ls -hl";
la = "ls -ahl";
@@ -67,7 +67,7 @@ in
enable = true;
settings.user = {
inherit name;
email = config.email;
email = config.shell.email;
};
};
starship = {