91 lines
2.0 KiB
Nix
91 lines
2.0 KiB
Nix
{ inputs, outputs, lib, config, pkgs, ... }:
|
|
{
|
|
# You can import other home-manager modules here
|
|
imports = [];
|
|
|
|
nixpkgs = {
|
|
overlays = [
|
|
outputs.overlays.unstable-packages
|
|
];
|
|
config = {
|
|
allowUnfree = true;
|
|
# Workaround for https://github.com/nix-community/home-manager/issues/2942
|
|
allowUnfreePredicate = (_: true);
|
|
};
|
|
};
|
|
|
|
home = {
|
|
username = "hheikkinen";
|
|
homeDirectory = "/home/hheikkinen";
|
|
keyboard.layout = "us";
|
|
packages = with pkgs; [
|
|
brave
|
|
arandr
|
|
autorandr
|
|
cowsay
|
|
pavucontrol
|
|
keepassxc
|
|
yt-dlp
|
|
mpv
|
|
feh
|
|
rustup
|
|
neofetch
|
|
terminator
|
|
moc
|
|
xclip
|
|
imagemagick
|
|
libnotify
|
|
xorg.xwininfo
|
|
python310Packages.py3status
|
|
];
|
|
file.".config" = {
|
|
source = ./.config;
|
|
recursive = true;
|
|
};
|
|
file.".local" = {
|
|
source = ./.local;
|
|
recursive = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
bash = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
shellAliases = {
|
|
bye = "(echo 'Press enter to confirm shutdown...'); read && shutdown 0";
|
|
};
|
|
historyControl = [ "ignorespace" "ignoredups" ];
|
|
historyFile = "$HOME/.bash_history";
|
|
historyFileSize = 1000000;
|
|
bashrcExtra = ''
|
|
export PS1="\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;7m\]@\[$(tput sgr0)\]\[\033[38;5;14m\]\h\[$(tput sgr0)\]\[\033[38;5;7m\]:\[$(tput sgr0)\]\[\033[38;5;12m\]\w\[$(tput sgr0)\]\\$ \[$(tput sgr0)\]"
|
|
|
|
export NIX_CONFIG='experimental-features = nix-command flakes'
|
|
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
|
|
|
export HISTTIMEFORMAT="[%F %T] "
|
|
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
|
'';
|
|
profileExtra = ''
|
|
[ -d "$HOME/.local/scripts" ] && PATH="$HOME/.local/scripts:$PATH"
|
|
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
|
|
[ -d "$HOME/.yarn/bin" ] && PATH="$HOME/.yarn/bin:$PATH"
|
|
|
|
export EDITOR=nvim
|
|
'';
|
|
};
|
|
git = {
|
|
enable = true;
|
|
userName = "hheik";
|
|
userEmail = "4469778+hheik@users.noreply.github.com";
|
|
};
|
|
};
|
|
|
|
programs.home-manager.enable = true;
|
|
systemd.user.startServices = "sd-switch";
|
|
|
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
home.stateVersion = "23.05";
|
|
}
|