2024-04-27 16:05:00 -04:00
|
|
|
{ config, 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-04-27 16:05:00 -04:00
|
|
|
|
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-03 18:49:17 -04:00
|
|
|
programs.zsh.initExtra = "source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme" + "\n" + "source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + "\n" + "[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh";
|
2024-05-07 20:23:23 -04:00
|
|
|
|
|
|
|
programs.zoxide.enable = true;
|
|
|
|
programs.zoxide.enableZshIntegration = true;
|
|
|
|
|
|
|
|
|
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-05 01:15:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
services = {
|
|
|
|
flameshot = {
|
|
|
|
enable = true;
|
2024-05-05 01:17:36 -04:00
|
|
|
settings.General.showDesktopNotification = false;
|
2024-05-05 01:26:44 -04:00
|
|
|
settings.General.startupLaunch = false;
|
2024-05-05 01:18:48 -04:00
|
|
|
# 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-05 19:37:57 -04:00
|
|
|
protontricks
|
2024-05-05 20:31:59 -04:00
|
|
|
thunderbird
|
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
|
|
|
|
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-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-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
|
|
|
|
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
|
|
|
|
temurin-bin-8
|
|
|
|
#JAVAEND
|
2024-04-23 19:06:12 -04:00
|
|
|
xsel
|
|
|
|
google-chrome
|
|
|
|
bitwarden
|
|
|
|
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-04-21 19:57:10 -04:00
|
|
|
# # You can also create simple shell scripts directly inside your
|
|
|
|
# # configuration. For example, this adds a command 'my-hello' to your
|
|
|
|
# # environment:
|
|
|
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
|
|
|
# echo "Hello, ${config.home.username}!"
|
|
|
|
# '')
|
2024-04-26 21:29:45 -04:00
|
|
|
(pkgs.writeShellScriptBin "installVencord" ''
|
2024-05-03 18:49:17 -04:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
out=$(mktemp)
|
|
|
|
# trap 'rm -f "$out"' EXIT
|
|
|
|
curl -sS https://github.com/Vendicated/VencordInstaller/releases/latest/download/VencordInstallerCli-Linux \
|
|
|
|
--output "$out" \
|
|
|
|
--location
|
2024-04-26 21:29:45 -04:00
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
chmod +x "$out"
|
2024-04-26 21:29:45 -04:00
|
|
|
|
2024-05-03 18:49:17 -04:00
|
|
|
sudo NIX_LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH NIX_LD=$NIX_LD $out -location "${pkgs.discord}/opt/Discord"
|
2024-04-26 21:29:45 -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";
|
|
|
|
};
|
|
|
|
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";
|
|
|
|
copt = "xsel -ib";
|
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;
|
|
|
|
}
|