2024-05-08 22:28:06 -04:00
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2024-04-21 19:57:10 -04:00
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
let
|
|
|
|
cpkg = import ../../customPackages { inherit pkgs; };
|
2024-05-08 22:28:06 -04:00
|
|
|
zshInitArgs = [
|
|
|
|
"source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme"
|
|
|
|
"source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
|
|
|
"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh"
|
|
|
|
"setopt globstarshort"
|
|
|
|
];
|
|
|
|
_z1 = lib.concatMapStrings (x: x + "\n") zshInitArgs;
|
2024-05-03 18:49:17 -04:00
|
|
|
in
|
2024-04-21 19:57:10 -04:00
|
|
|
{
|
2024-05-03 18:49:17 -04:00
|
|
|
programs.zsh.enable = true;
|
2024-04-24 19:39:08 -04:00
|
|
|
programs.zsh.oh-my-zsh.enable = true;
|
2024-05-08 22:28:06 -04:00
|
|
|
programs.zsh.initExtra = builtins.trace _z1 _z1;
|
2024-05-23 15:41:29 -04:00
|
|
|
programs.java.enable = true;
|
|
|
|
programs.java.package = pkgs.temurin-bin-17;
|
2024-05-08 22:28:06 -04:00
|
|
|
programs.zoxide.enable = true;
|
|
|
|
programs.zoxide.enableZshIntegration = true;
|
2024-05-07 20:23:23 -04:00
|
|
|
|
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
nixpkgs.config.allowUnfreePredicate = (pkg: true);
|
2024-04-21 19:57:10 -04:00
|
|
|
# Home Manager needs a bit of information about you and the paths it should
|
2024-04-21 21:15:02 -04:00
|
|
|
# nixpkg.config.allowUnfree = true;
|
2024-04-21 19:57:10 -04:00
|
|
|
# manage.
|
|
|
|
home.username = "meyer";
|
|
|
|
home.homeDirectory = "/home/meyer";
|
2024-05-08 22:28:06 -04:00
|
|
|
|
2024-05-05 01:15:43 -04:00
|
|
|
|
|
|
|
services = {
|
|
|
|
flameshot = {
|
2024-05-08 22:28:06 -04:00
|
|
|
enable = true;
|
|
|
|
settings.General.showDesktopNotification = false;
|
|
|
|
settings.General.startupLaunch = false;
|
|
|
|
# settings.Shortcuts.TYPE_IMAGEUPLOADER = "";
|
|
|
|
# settings.Shortcuts.TYPE_COPY = "Return";
|
2024-05-05 01:15:43 -04:00
|
|
|
};
|
|
|
|
};
|
2024-04-21 19:57:10 -04:00
|
|
|
# This value determines the Home Manager release that your configuration is
|
|
|
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
|
|
|
# introduces backwards incompatible changes.
|
|
|
|
#
|
|
|
|
# You should not change this value, even if you update Home Manager. If you do
|
|
|
|
# want to update the value, then make sure to first check the Home Manager
|
|
|
|
# release notes.
|
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
|
|
|
# The home.packages option allows you to install Nix packages into your
|
|
|
|
# environment.
|
2024-04-23 19:06:12 -04:00
|
|
|
home.packages = with pkgs;[
|
2024-05-24 23:28:09 -04:00
|
|
|
lutris
|
2024-05-23 20:21:39 -04:00
|
|
|
pavucontrol
|
2024-05-23 15:41:29 -04:00
|
|
|
jetbrains.pycharm-community
|
2024-05-21 23:40:54 -04:00
|
|
|
jetbrains.idea-community-bin
|
2024-05-16 22:00:20 -04:00
|
|
|
tailscale
|
2024-05-14 19:54:54 -04:00
|
|
|
clang
|
2024-05-14 19:52:37 -04:00
|
|
|
gnumake
|
2024-05-12 18:44:19 -04:00
|
|
|
jq
|
2024-05-21 23:26:05 -04:00
|
|
|
gradle
|
2024-05-12 18:44:19 -04:00
|
|
|
lazygit
|
2024-05-05 19:37:57 -04:00
|
|
|
protontricks
|
2024-05-05 20:31:59 -04:00
|
|
|
thunderbird
|
2024-05-07 22:37:44 -04:00
|
|
|
vlc
|
|
|
|
jellyfin-web
|
2024-05-03 18:49:17 -04:00
|
|
|
obs-studio
|
2024-04-23 21:55:50 -04:00
|
|
|
tokyo-night-gtk
|
2024-04-24 20:50:33 -04:00
|
|
|
linuxHeaders
|
2024-04-24 18:09:32 -04:00
|
|
|
#NODE
|
2024-05-11 14:53:31 -04:00
|
|
|
nodePackages.nodemon
|
2024-04-24 18:09:32 -04:00
|
|
|
nodePackages.ts-node
|
2024-05-05 01:15:43 -04:00
|
|
|
nodePackages.pnpm
|
2024-04-24 18:11:41 -04:00
|
|
|
nodePackages.prisma
|
2024-04-24 19:18:48 -04:00
|
|
|
prisma-engines
|
2024-05-19 16:59:17 -04:00
|
|
|
nodePackages.live-server
|
2024-04-24 18:11:41 -04:00
|
|
|
#ENDNODE
|
2024-04-23 20:15:38 -04:00
|
|
|
zsh-powerlevel10k
|
2024-04-23 20:43:10 -04:00
|
|
|
zsh-syntax-highlighting
|
2024-05-19 16:59:17 -04:00
|
|
|
|
2024-04-23 19:06:12 -04:00
|
|
|
hello
|
2024-04-23 21:28:11 -04:00
|
|
|
gh
|
2024-05-03 18:49:17 -04:00
|
|
|
(prismlauncher.override {
|
|
|
|
jdks = [
|
|
|
|
jdk8
|
|
|
|
jdk17
|
|
|
|
jdk19
|
|
|
|
];
|
|
|
|
})
|
2024-04-23 19:56:22 -04:00
|
|
|
ksshaskpass
|
2024-05-03 18:49:17 -04:00
|
|
|
libsForQt5.kinit
|
2024-04-23 20:25:22 -04:00
|
|
|
fzf
|
2024-04-24 21:18:06 -04:00
|
|
|
#C AND CXX START
|
|
|
|
glib
|
|
|
|
glibc
|
|
|
|
#C AND CXX END
|
|
|
|
|
2024-04-24 20:38:34 -04:00
|
|
|
#PYTHONSTART
|
2024-05-03 18:49:17 -04:00
|
|
|
(python39.withPackages (ps: with ps;[
|
|
|
|
evdev
|
2024-05-23 15:52:16 -04:00
|
|
|
setuptools
|
2024-05-03 18:49:17 -04:00
|
|
|
xlib
|
2024-04-24 21:46:07 -04:00
|
|
|
]))
|
2024-04-24 21:38:06 -04:00
|
|
|
# python311Packages.evdev
|
|
|
|
# python311Packages.xlib
|
2024-04-24 20:38:34 -04:00
|
|
|
#PYTHONEND
|
2024-04-25 19:39:13 -04:00
|
|
|
#JAVASTART
|
2024-05-07 22:30:23 -04:00
|
|
|
pkgs.discord
|
2024-05-11 13:33:05 -04:00
|
|
|
|
2024-04-25 19:39:13 -04:00
|
|
|
#JAVAEND
|
2024-04-23 19:06:12 -04:00
|
|
|
xsel
|
|
|
|
google-chrome
|
|
|
|
bitwarden
|
2024-05-11 13:33:05 -04:00
|
|
|
eslint_d
|
2024-04-23 19:06:12 -04:00
|
|
|
spotify
|
|
|
|
vscodium
|
2024-04-29 18:13:55 -04:00
|
|
|
pulseaudioFull
|
|
|
|
cpkg.vesktop
|
2024-04-23 19:06:12 -04:00
|
|
|
kitty
|
2024-04-23 20:50:42 -04:00
|
|
|
rofi
|
2024-04-23 19:06:12 -04:00
|
|
|
go
|
|
|
|
php
|
|
|
|
nodejs_21
|
2024-04-21 21:17:32 -04:00
|
|
|
# pkgs.temurin-jre-bin-8
|
2024-04-23 19:06:12 -04:00
|
|
|
cargo
|
2024-04-23 20:34:02 -04:00
|
|
|
nerdfonts
|
2024-04-23 19:06:12 -04:00
|
|
|
lua
|
|
|
|
btop
|
|
|
|
unzip
|
|
|
|
protonvpn-gui
|
2024-04-24 18:07:40 -04:00
|
|
|
typescript
|
2024-05-07 20:39:44 -04:00
|
|
|
#MASON
|
|
|
|
nodePackages_latest.typescript-language-server
|
|
|
|
#ENDMASON
|
2024-04-21 19:57:10 -04:00
|
|
|
# # You can also create simple shell scripts directly inside your
|
2024-05-07 20:39:44 -04:00
|
|
|
|
2024-04-21 19:57:10 -04:00
|
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
|
|
# # environment:
|
|
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
|
|
# echo "Hello, ${config.home.username}!"
|
|
|
|
# '')
|
2024-05-14 14:48:38 -04:00
|
|
|
(pkgs.writeShellScriptBin "git_fetchAll" ''
|
2024-05-16 22:00:20 -04:00
|
|
|
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "''${remote#origin/}" "$remote"; done
|
|
|
|
git fetch --all
|
|
|
|
git pull --all
|
2024-05-14 14:48:38 -04:00
|
|
|
'')
|
2024-05-10 23:44:33 -04:00
|
|
|
(pkgs.writeShellScriptBin "install_eslint" ''
|
2024-05-10 23:48:28 -04:00
|
|
|
set -x
|
|
|
|
cp /home/${config.home.username}/.config/.eslintrc.json .
|
2024-05-10 23:44:33 -04:00
|
|
|
pkgs=("@stylistic/eslint-plugin" "@typescript-eslint/eslint-plugin")
|
|
|
|
if [[ -z $1 ]]; then
|
|
|
|
echo please specify npm, pnpm, or yarn
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
for i in "''${pkgs[@]}"; do
|
2024-05-10 23:48:28 -04:00
|
|
|
`$1 i -D $i`
|
2024-05-10 23:44:33 -04:00
|
|
|
done
|
2024-05-10 21:56:13 -04:00
|
|
|
'')
|
2024-05-23 20:01:44 -04:00
|
|
|
(pkgs.writeShellScriptBin "math" ''
|
2024-05-23 20:21:39 -04:00
|
|
|
set -e
|
|
|
|
python3 -c "print($*)"
|
2024-05-23 20:01:44 -04:00
|
|
|
'')
|
2024-04-21 19:57:10 -04:00
|
|
|
];
|
|
|
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
|
|
|
# plain files is through 'home.file'.
|
|
|
|
home.file = {
|
2024-05-03 18:49:17 -04:00
|
|
|
kitty = {
|
|
|
|
recursive = true;
|
|
|
|
source = ../../dotfiles/kitty;
|
|
|
|
target = "./.config/kitty";
|
|
|
|
};
|
2024-05-10 22:15:05 -04:00
|
|
|
eslint_d_config = {
|
2024-05-10 23:44:33 -04:00
|
|
|
source = ../../dotfiles/eslintrc.json;
|
|
|
|
target = "./.config/.eslintrc.json";
|
2024-05-10 22:15:05 -04:00
|
|
|
};
|
2024-05-03 18:49:17 -04:00
|
|
|
gh = {
|
|
|
|
recursive = true;
|
|
|
|
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/gh";
|
|
|
|
target = "./.config/gh";
|
|
|
|
};
|
|
|
|
btop = {
|
|
|
|
recursive = true;
|
|
|
|
source = ../../dotfiles/btop;
|
|
|
|
target = "./.config/btop";
|
|
|
|
};
|
2024-05-03 18:54:52 -04:00
|
|
|
nvim = {
|
|
|
|
recursive = true;
|
|
|
|
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nixos/dotfiles/nvim";
|
|
|
|
target = "./.config/nvim";
|
|
|
|
};
|
2024-05-03 18:49:17 -04:00
|
|
|
# "testconfigfile".source = ../../dotfiles/testconfigfile;
|
2024-04-23 19:06:12 -04:00
|
|
|
# ".gitconfig".source = ../../dotfiles/.gitconfig;
|
2024-04-21 19:57:10 -04:00
|
|
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
|
|
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
|
|
|
# # symlink to the Nix store copy.
|
|
|
|
# ".screenrc".source = dotfiles/screenrc;
|
|
|
|
|
|
|
|
# # You can also set the file content immediately.
|
|
|
|
# ".gradle/gradle.properties".text = ''
|
|
|
|
# org.gradle.console=verbose
|
|
|
|
# org.gradle.daemon.idletimeout=3600000
|
|
|
|
# '';
|
|
|
|
};
|
|
|
|
|
|
|
|
# Home Manager can also manage your environment variables through
|
|
|
|
# 'home.sessionVariables'. If you don't want to manage your shell through Home
|
|
|
|
# Manager then you have to manually source 'hm-session-vars.sh' located at
|
|
|
|
# either
|
|
|
|
#
|
|
|
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
|
|
|
# or
|
|
|
|
#
|
|
|
|
# /etc/profiles/per-user/meyer/etc/profile.d/hm-session-vars.sh
|
|
|
|
#
|
2024-04-27 17:26:08 -04:00
|
|
|
home.shellAliases = {
|
2024-05-03 18:49:17 -04:00
|
|
|
paste = "xsel -ob";
|
2024-05-14 14:48:38 -04:00
|
|
|
lg = "lazygit";
|
2024-05-11 13:33:05 -04:00
|
|
|
copy = "xsel -ib";
|
|
|
|
b = "/home/${config.home.username}/nixos/build";
|
2024-04-27 17:26:08 -04:00
|
|
|
};
|
2024-04-25 19:39:13 -04:00
|
|
|
home.sessionPath = [
|
|
|
|
"$HOME/.local/bin"
|
|
|
|
];
|
2024-04-21 19:57:10 -04:00
|
|
|
home.sessionVariables = {
|
2024-05-03 18:49:17 -04:00
|
|
|
EDITOR = "nvim";
|
|
|
|
MANPAGER = "nvim +Man!";
|
|
|
|
MANWIDTH = "999";
|
|
|
|
SSH_ASKPASS_REQUIRE = "prefer";
|
|
|
|
PRISMA_QUERY_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/query-engine";
|
|
|
|
PRISMA_SCHEMA_ENGINE_BINARY = "${pkgs.prisma-engines}/bin/schema-engine";
|
|
|
|
PRISMA_QUERY_ENGINE_LIBRARY = "${pkgs.prisma-engines}/lib/libquery_engine.node";
|
2024-04-21 19:57:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
# Let Home Manager install and manage itself.
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
}
|