diff --git a/home/options.nix b/home/options.nix index 6489064..8568e24 100644 --- a/home/options.nix +++ b/home/options.nix @@ -1,6 +1,6 @@ { config, lib, ... }: { - options = { + options.shell = { name = lib.mkOption { type = lib.types.str; #default = "nyx"; diff --git a/home/shell.nix b/home/shell.nix index dfbe7c5..55d5864 100644 --- a/home/shell.nix +++ b/home/shell.nix @@ -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 = {