diff --git a/home/options.nix b/home/options.nix new file mode 100644 index 0000000..9c11df1 --- /dev/null +++ b/home/options.nix @@ -0,0 +1,7 @@ +{ lib, ... }: +{ + options = { + name = lib.mkOption { type = lib.types.str; }; + homeDirectory = lib.mkOption { type = lib.types.path; }; + }; +} diff --git a/home/shell.nix b/home/shell.nix index 43525c4..6b29206 100644 --- a/home/shell.nix +++ b/home/shell.nix @@ -2,8 +2,8 @@ { pkgs, config, ... }: let - name = "${config.home.username}"; - homeDir = "${config.home.homeDirectory}"; + name = "${config.name}"; + homeDir = "${config.homeDirectory}"; myAliases = { ll = "ls -hl"; la = "ls -ahl"; @@ -18,6 +18,9 @@ let }; in { + imports = [ + ./options.nix + ]; home = { stateVersion = "26.05"; sessionVariables = {