mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-12 16:39:44 +00:00
formatter
This commit is contained in:
parent
95d55ce775
commit
0db029b748
1 changed files with 136 additions and 89 deletions
225
home.nix
225
home.nix
|
@ -1,6 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = "user";
|
home.username = "user";
|
||||||
|
@ -29,15 +32,15 @@
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# default editor
|
# default editor
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
NIXPKGS_ALLOW_UNFREE=1;
|
NIXPKGS_ALLOW_UNFREE = 1;
|
||||||
|
|
||||||
# sshaskpass
|
# sshaskpass
|
||||||
SSH_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass";
|
SSH_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass";
|
||||||
SSH_ASKPASS_REQUIRE = "prefer";
|
SSH_ASKPASS_REQUIRE = "prefer";
|
||||||
|
|
||||||
# Store git credentials in KDE Wallet
|
# Store git credentials in KDE Wallet
|
||||||
GIT_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass";
|
GIT_ASKPASS = "/home/user/.nix-profile/bin/ksshaskpass";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
|
@ -58,26 +61,70 @@
|
||||||
# (pkgs.writeShellScriptBin "my-hello" ''
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
# echo "Hello, ${config.home.username}!"
|
# echo "Hello, ${config.home.username}!"
|
||||||
# '')
|
# '')
|
||||||
xsel wget neofetch htop oh-my-zsh git chromium plasma5Packages.qtstyleplugin-kvantum kdeconnect
|
xsel
|
||||||
microsoft-edge vivaldi vivaldi-ffmpeg-codecs x264 joypixels rustc cargo unzip ocs-url
|
wget
|
||||||
nextcloud-client duf foliate mpv obsidian dino aria2 bitwarden kitty-themes p7zip
|
neofetch
|
||||||
tdesktop libreoffice-fresh jetbrains-mono yakuake krita filelight inkscape yt-dlp ranger
|
htop
|
||||||
libsForQt5.kwallet libsForQt5.kwallet-pam libsForQt5.kwalletmanager libsForQt5.ksshaskpass
|
oh-my-zsh
|
||||||
cachix direnv git-lfs nix-direnv zathura starship gnome.gnome-tweaks gnome-extension-manager
|
git
|
||||||
|
chromium
|
||||||
|
plasma5Packages.qtstyleplugin-kvantum
|
||||||
|
kdeconnect
|
||||||
|
microsoft-edge
|
||||||
|
vivaldi
|
||||||
|
vivaldi-ffmpeg-codecs
|
||||||
|
x264
|
||||||
|
joypixels
|
||||||
|
rustc
|
||||||
|
cargo
|
||||||
|
unzip
|
||||||
|
ocs-url
|
||||||
|
nextcloud-client
|
||||||
|
duf
|
||||||
|
foliate
|
||||||
|
mpv
|
||||||
|
obsidian
|
||||||
|
dino
|
||||||
|
aria2
|
||||||
|
bitwarden
|
||||||
|
kitty-themes
|
||||||
|
p7zip
|
||||||
|
tdesktop
|
||||||
|
libreoffice-fresh
|
||||||
|
jetbrains-mono
|
||||||
|
yakuake
|
||||||
|
krita
|
||||||
|
filelight
|
||||||
|
inkscape
|
||||||
|
yt-dlp
|
||||||
|
ranger
|
||||||
|
libsForQt5.kwallet
|
||||||
|
libsForQt5.kwallet-pam
|
||||||
|
libsForQt5.kwalletmanager
|
||||||
|
libsForQt5.ksshaskpass
|
||||||
|
cachix
|
||||||
|
direnv
|
||||||
|
git-lfs
|
||||||
|
nix-direnv
|
||||||
|
zathura
|
||||||
|
starship
|
||||||
|
gnome.gnome-tweaks
|
||||||
|
gnome-extension-manager
|
||||||
ripgrep
|
ripgrep
|
||||||
inputs.nv.packages.x86_64-linux.default
|
inputs.nv.packages.x86_64-linux.default
|
||||||
|
inputs.nyaa.packages.x86_64-linux.default
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"electron-25.9.0"
|
"electron-25.9.0"
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = false;
|
enable = false;
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
. ~/.bashrc
|
. ~/.bashrc
|
||||||
eval "$(direnv hook bash)"
|
eval "$(direnv hook bash)"
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -93,11 +140,11 @@
|
||||||
plugins = ["git" "colored-man-pages" "extract" "sudo"];
|
plugins = ["git" "colored-man-pages" "extract" "sudo"];
|
||||||
};
|
};
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
alias vv=nvim
|
alias vv=nvim
|
||||||
alias yt-dlp-1080="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
alias yt-dlp-1080="yt-dlp -f 'bestvideo[height<=1080]+bestaudio/best[height<=1080]'"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
|
@ -116,7 +163,7 @@
|
||||||
# one above the other if the existing window is tall
|
# one above the other if the existing window is tall
|
||||||
"f4" = "launch --location=split";
|
"f4" = "launch --location=split";
|
||||||
|
|
||||||
# Rotate the current split, changing its split axis from vertical to
|
# Rotate the current split, changing its split axis from vertical to
|
||||||
# horizontal or vice versa
|
# horizontal or vice versa
|
||||||
"f7" = "layout_action rotate";
|
"f7" = "layout_action rotate";
|
||||||
|
|
||||||
|
@ -156,7 +203,7 @@
|
||||||
mouse = true;
|
mouse = true;
|
||||||
plugins = with pkgs.tmuxPlugins; [
|
plugins = with pkgs.tmuxPlugins; [
|
||||||
better-mouse-mode
|
better-mouse-mode
|
||||||
#dracula
|
#dracula
|
||||||
#gruvbox
|
#gruvbox
|
||||||
#nord
|
#nord
|
||||||
#onedark-theme
|
#onedark-theme
|
||||||
|
@ -166,60 +213,60 @@
|
||||||
tmux-fzf
|
tmux-fzf
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
set-option -g mouse on
|
set-option -g mouse on
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
#programs.nixvim = import ./nixvim.nix pkgs;
|
#programs.nixvim = import ./nixvim.nix pkgs;
|
||||||
|
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = false;
|
enable = false;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
# coc.enable = true;
|
# coc.enable = true;
|
||||||
# extraLuaConfig = ''
|
# extraLuaConfig = ''
|
||||||
# for _, source in ipairs {
|
# for _, source in ipairs {
|
||||||
# "astronvim.bootstrap",
|
# "astronvim.bootstrap",
|
||||||
# "astronvim.options",
|
# "astronvim.options",
|
||||||
# "astronvim.lazy",
|
# "astronvim.lazy",
|
||||||
# "astronvim.autocmds",
|
# "astronvim.autocmds",
|
||||||
# "astronvim.mappings",
|
# "astronvim.mappings",
|
||||||
# } do
|
# } do
|
||||||
# local status_ok, fault = pcall(require, source)
|
# local status_ok, fault = pcall(require, source)
|
||||||
# if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault
|
# if not status_ok then vim.api.nvim_err_writeln("Failed to load " .. source .. "\n\n" .. fault
|
||||||
# ) end
|
# ) end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# if astronvim.default_colorscheme then
|
# if astronvim.default_colorscheme then
|
||||||
# if not pcall(vim.cmd.colorscheme, astronvim.default_colorscheme) then
|
# if not pcall(vim.cmd.colorscheme, astronvim.default_colorscheme) then
|
||||||
# requrie("astronvim.utils").notify(
|
# requrie("astronvim.utils").notify(
|
||||||
# "Error setting up colorscheme: " .. astronvim.default_colorscheme,
|
# "Error setting up colorscheme: " .. astronvim.default_colorscheme,
|
||||||
# vim.log.levels.ERROR
|
# vim.log.levels.ERROR
|
||||||
# )
|
# )
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true)
|
# require("astronvim.utils").conditional_func(astronvim.user_opts("polish", nil, false), true)
|
||||||
# '';
|
# '';
|
||||||
#
|
#
|
||||||
# plugins = (with pkgs.vimPlugins; [
|
# plugins = (with pkgs.vimPlugins; [
|
||||||
# rust-vim
|
# rust-vim
|
||||||
# rust-tools-nvim
|
# rust-tools-nvim
|
||||||
# coc-rust-analyzer
|
# coc-rust-analyzer
|
||||||
# nvim-treesitter-parsers.rust
|
# nvim-treesitter-parsers.rust
|
||||||
# nvim-treesitter-parsers.cpp
|
# nvim-treesitter-parsers.cpp
|
||||||
# nvim-treesitter-parsers.c
|
# nvim-treesitter-parsers.c
|
||||||
# nvim-treesitter-parsers.latex
|
# nvim-treesitter-parsers.latex
|
||||||
# coc-rls
|
# coc-rls
|
||||||
# coc-clangd
|
# coc-clangd
|
||||||
# clangd_extensions-nvim
|
# clangd_extensions-nvim
|
||||||
# vim-clang-format
|
# vim-clang-format
|
||||||
# ]);
|
# ]);
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.vscode = {
|
programs.vscode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = (with pkgs.vscode-extensions;[
|
extensions = with pkgs.vscode-extensions; [
|
||||||
arrterian.nix-env-selector
|
arrterian.nix-env-selector
|
||||||
mkhl.direnv
|
mkhl.direnv
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
|
@ -233,31 +280,31 @@
|
||||||
rust-lang.rust-analyzer
|
rust-lang.rust-analyzer
|
||||||
|
|
||||||
waderyan.gitblame
|
waderyan.gitblame
|
||||||
]);
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bat = {
|
programs.bat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
theme = "ansi";
|
theme = "ansi";
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.mpris-proxy.enable = true;
|
services.mpris-proxy.enable = true;
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
#home.file = {
|
#home.file = {
|
||||||
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||||||
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||||||
# # symlink to the Nix store copy.
|
# # symlink to the Nix store copy.
|
||||||
# ".screenrc".source = dotfiles/screenrc;
|
# ".screenrc".source = dotfiles/screenrc;
|
||||||
|
|
||||||
# # You can also set the file content immediately.
|
# # You can also set the file content immediately.
|
||||||
# ".gradle/gradle.properties".text = ''
|
# ".gradle/gradle.properties".text = ''
|
||||||
# org.gradle.console=verbose
|
# org.gradle.console=verbose
|
||||||
# org.gradle.daemon.idletimeout=3600000
|
# org.gradle.daemon.idletimeout=3600000
|
||||||
# '';
|
# '';
|
||||||
#};
|
#};
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/hypr".source = ./config/hypr;
|
".config/hypr".source = ./config/hypr;
|
||||||
|
|
Loading…
Reference in a new issue