fix luci home.nix

This commit is contained in:
Nathan Anderson 2024-03-17 22:52:07 -06:00
parent fad66ef62d
commit bafcb6cb21

View File

@ -1,6 +1,8 @@
{ lib, config, pkgs, ... }: { lib, config, pkgs, ... }:
let let
homeConfig = config.homeConfig; userName = "jaci";
fullName = "Jaci Anderson";
email = "jaci.s.anderson@gmail.com";
in in
{ {
# nixpkgs.overlays = [ # nixpkgs.overlays = [
@ -9,24 +11,23 @@ in
# nixpkgs.config.allowUnfree = true; # nixpkgs.config.allowUnfree = true;
# inputs.nixpkgs-stable.config.allowUnfree = true; # inputs.nixpkgs-stable.config.allowUnfree = true;
options.homeConfig = { # options.homeConfig = {
userName = lib.mkOption { # userName = lib.mkOption {
type = lib.types.str; # type = lib.types.str;
description = "Main username for system"; # description = "Main username for system";
}; # };
hostName = lib.mkOption { # hostName = lib.mkOption {
type = lib.types.str; # type = lib.types.str;
description = "Hostname for system"; # description = "Hostname for system";
}; # };
fullName = lib.mkOption { # fullName = lib.mkOption {
type = lib.types.str; # type = lib.types.str;
description = "Hostname for system"; # description = "Hostname for system";
}; # };
}; # };
config = { home.username = userName;
home.username = homeConfig.userName; home.homeDirectory = "/home/${userName}";
home.homeDirectory = "/home/${homeConfig.userName}";
programs.home-manager.enable = true; programs.home-manager.enable = true;
@ -71,8 +72,8 @@ in
# Git setup # Git setup
programs.git = { programs.git = {
enable = true; enable = true;
userEmail = homeConfig.email; userEmail = email;
userName = homeConfig.fullName; userName = fullName;
}; };
programs = { programs = {
@ -103,5 +104,5 @@ in
alias grep="rg" alias grep="rg"
''; '';
}; };
};
} }