config: added name and home directory options

This commit is contained in:
Devyn Freet
2026-07-10 23:04:36 -04:00
parent ae93a6803d
commit c1f029289c
2 changed files with 12 additions and 2 deletions
+7
View File
@@ -0,0 +1,7 @@
{ lib, ... }:
{
options = {
name = lib.mkOption { type = lib.types.str; };
homeDirectory = lib.mkOption { type = lib.types.path; };
};
}
+5 -2
View File
@@ -2,8 +2,8 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
name = "${config.home.username}"; name = "${config.name}";
homeDir = "${config.home.homeDirectory}"; homeDir = "${config.homeDirectory}";
myAliases = { myAliases = {
ll = "ls -hl"; ll = "ls -hl";
la = "ls -ahl"; la = "ls -ahl";
@@ -18,6 +18,9 @@ let
}; };
in in
{ {
imports = [
./options.nix
];
home = { home = {
stateVersion = "26.05"; stateVersion = "26.05";
sessionVariables = { sessionVariables = {