Files
nix-config/home-manager/home.nix
2025-01-01 17:42:30 +11:00

119 lines
3.0 KiB
Nix

# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{
inputs,
outputs,
lib,
config,
pkgs,
...
}: {
# You can import other home-manager modules here
imports = [
./alacritty.nix
];
nixpkgs = {
# You can add overlays here
overlays = [
# Add overlays your own flake exports (from overlays and pkgs dir):
outputs.overlays.additions
outputs.overlays.modifications
outputs.overlays.unstable-packages
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
# Or define it inline, for example:
# (final: prev: {
# hi = final.hello.overrideAttrs (oldAttrs: {
# patches = [ ./change-hello-to-hi.patch ];
# });
# })
];
# Configure your nixpkgs instance
config = {
# Disable if you don't want unfree packages
allowUnfree = true;
};
};
home = {
username = "chloe";
homeDirectory = "/home/chloe";
packages = with pkgs; [
alacritty
alacritty-theme
zsh-powerlevel10k
cozette
yt-dlp
clapper
hyfetch
(nerdfonts.override { fonts = [ "FiraCode" "JetBrainsMono" ]; })
];
};
programs = {
# Alacritty Config
alacritty = {
enable = true;
settings = {
font.normal.family = "CozetteVector";
font.bold.family = "CozetteVector";
font.bold.style = "bold";
font.size = 12.0;
colors.primary = {
background = "0x2D2A2E";
foreground = "0xfff1f3";
};
colors.normal = {
black = "0x2c2525";
red = "0xfd6883";
green = "0xadda78";
yellow = "0xf9cc6c";
blue = "0xf38d70";
magenta = "0xa8a9eb";
cyan = "0x85dacc";
white = "0xfff1f3";
};
colors.bright = {
black = "0x72696a";
red = "0xfd6883";
green = "0xadda78";
yellow = "0xf9cc6c";
blue = "0xf38d70";
magenta = "0xa8a9eb";
cyan = "0x85dacc";
white = "0xfff1f3";
};
};
};
# ZSH Config
zsh = {
enable = true;
initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
shellAliases = {
nixconfig = "nano ~/nix-config/nixos/configuration.nix";
pkgconfig = "nano ~/nix-config/nixos/pkgs.nix";
homeconfig = "nano ~/nix-config/home-manager/home.nix";
rebuild-conf = "sudo nixos-rebuild switch --flake ~/nix-config";
};
};
# Add stuff for your user as you see fit:
firefox.enable = true;
home-manager.enable = true;
git.enable = true;
};
# Allow home-manager to manage fonts
fonts.fontconfig.enable = true;
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.05";
}