Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.5 KiB

{ config, pkgs, user, ... }:
let
colors = import ../colors;
in
{
imports = [
../vim.nix
../ranger.nix
../fcitx5
../picom.nix
../i3.nix
../polybar
../rofi
../git.nix
../terminal.nix
];
home.file."./.background-image".source = ../wallpapers/${colors.wallpaper};
programs.home-manager.enable = true;
gtk = {
enable = true;
iconTheme = colors.gtkTheme pkgs;
theme = colors.gtkTheme pkgs;
# Remove minimize, maximize, and close buttons
gtk3.extraConfig = {
gtk-decoration-layout = "appmenu:none";
};
gtk4.extraConfig = {
gtk-decoration-layout = "appmenu:none";
};
};
qt = {
enable = true;
platformTheme = "gtk";
};
home = {
username = "${user}";
homeDirectory = "/home/${user}";
stateVersion = "22.05";
sessionVariables = {
# GTK Theme won't display with GTK4 (e.g. nautilus) otherwise
GTK_THEME = (colors.gtkTheme pkgs).name;
};
packages = with pkgs; [
# Command line utilities
wget
neofetch
pfetch
fortune
killall
trash-cli # aliased to rm in .bashrc
# Tray applications
networkmanagerapplet # nm-applet
nextcloud-client
#(pkgs.callPackage ../colors/everforest/gtk.nix {})
# GUI applications
firefox
discord
gnome.nautilus
#gimp
#krita
#musescore
];
};
programs.bash = {
enable = true;
shellAliases = {
g = "git";
ga = "g add";
gc = "g commit -m ";
gu = "ga . && gc";
gs = "g status";
gi = "g init";
gp = "g push";
gf = "g pull";
gC = "g clone";
goops = "g reset --soft HEAD^";
v = "vim";
r = "ranger";
rm = "trash-put";
};
# Change to directory when exiting ranger with Q
# https://github.com/ranger/ranger/issues/1554#issuecomment-491650123
bashrcExtra = ''
function ranger {
local IFS=$'\t\n'
local tempfile="$(mktemp -t tmp.XXXXXX)"
local ranger_cmd=(
command
ranger
--cmd="map Q chain shell echo %d > "$tempfile"; quitall"
)
''${ranger_cmd[@]} "$@"
if [[ -f "$tempfile" ]] && [[ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]]; then
cd -- "$(cat "$tempfile")" || return
fi
command rm -f -- "$tempfile" 2>/dev/null
}
pfetch
while true; do
f=`fortune`
if [ ''${#f} -lt 128 ]; then
echo "''${f}"
break
fi
done
'';
};
}