From c1f029289c26ffd0246e3f7577f60c008e17dd48 Mon Sep 17 00:00:00 2001 From: Devyn Freet Date: Fri, 10 Jul 2026 23:04:36 -0400 Subject: [PATCH] config: added name and home directory options --- home/options.nix | 7 +++++++ home/shell.nix | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 home/options.nix 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 = {