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.

116 lines
2.5 KiB

{ config, pkgs, user, ... }:
let
theme = pkgs.nordic;
themeName = "Nordic";
colors = import ../colors;
in
{
imports = [
../vim.nix
../ranger.nix
../fcitx5.nix
../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 = {
name = "${themeName}";
package = "${theme}";
};
theme = {
name = "${themeName}";
package = "${theme}";
};
# 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";
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
# GUI applications
firefox
#discord
# Commented out Discord, it is better to install it with nix-env
# using the following command to get past update issues:
# nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA discord
# See https://github.com/NixOS/nixpkgs/issues/94806#issuecomment-670213407
# This has been aliased to `latest` in .bashrc, so use `latest discord` to update 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";
rm = "trash-put";
# Install latest version of package in local environment
# config.allowUnfree seems to not apply to nix-env, so is provided explicitly
latest = "NIXPKGS_ALLOW_UNFREE=1 nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA";
};
bashrcExtra = ''
pfetch
while true; do
f=`fortune`
if [ ''${#f} -lt 128 ]; then
echo "''${f}"
break
fi
done
'';
};
}