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,99 +11,98 @@ 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";
}; # };
# };
home.username = userName;
home.homeDirectory = "/home/${userName}";
programs.home-manager.enable = true;
home.stateVersion = "23.11"; # Please read the comment before changing.
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
helix
jq
#
# Better Unix
#
bat
duf
fd
fzf
lsd
ripgrep
tre-command
gtop
htop
neofetch
# Normies
unzip
imv
mpv
ffmpeg
];
home.file."${config.xdg.configHome}" = {
source = ../../dotfiles;
recursive = true;
}; };
config = { home.sessionVariables = {
home.username = homeConfig.userName; EDITOR = "hx";
home.homeDirectory = "/home/${homeConfig.userName}"; };
programs.home-manager.enable = true; # Git setup
programs.git = {
enable = true;
userEmail = email;
userName = fullName;
};
home.stateVersion = "23.11"; # Please read the comment before changing. programs = {
direnv = {
fonts.fontconfig.enable = true; enable = true;
home.packages = with pkgs; [ enableZshIntegration = true; # see note on other shells below
helix nix-direnv.enable = true;
jq
#
# Better Unix
#
bat
duf
fd
fzf
lsd
ripgrep
tre-command
gtop
htop
neofetch
# Normies
unzip
imv
mpv
ffmpeg
];
home.file."${config.xdg.configHome}" = {
source = ../../dotfiles;
recursive = true;
}; };
bash.enable = true; # see note on other shells below
};
home.sessionVariables = { # Zsh setup
EDITOR = "hx"; programs.zsh = {
}; enable = true;
oh-my-zsh = {
# Git setup enable = true;
programs.git = { plugins = [ "git" ];
enable = true; theme = "half-life";
userEmail = homeConfig.email;
userName = homeConfig.fullName;
};
programs = {
direnv = {
enable = true;
enableZshIntegration = true; # see note on other shells below
nix-direnv.enable = true;
}; };
bash.enable = true; # see note on other shells below initExtra = ''
}; eval "$(direnv hook zsh)"
# Zsh setup alias ls="lsd"
programs.zsh = { alias l="lsd --almost-all --long"
enable = true; alias llm="lsd --timesort --long"
oh-my-zsh = { alias lS="lsd --oneline --classic"
enable = true; alias lt="lsd --tree --depth=2"
plugins = [ "git" ]; alias grep="rg"
theme = "half-life"; '';
};
initExtra = ''
eval "$(direnv hook zsh)"
alias ls="lsd"
alias l="lsd --almost-all --long"
alias llm="lsd --timesort --long"
alias lS="lsd --oneline --classic"
alias lt="lsd --tree --depth=2"
alias grep="rg"
'';
};
}; };
} }