Compare commits

..

No commits in common. "7528eddfa50be3afd345a456bc4e4bf7862f581d" and "fb3e9a47983c49892183f67d2dc2c7e5355485c5" have entirely different histories.

3 changed files with 60 additions and 25 deletions

29
dotfiles/.gitconfig Normal file
View file

@ -0,0 +1,29 @@
[user]
email = root@ivnglkv.me
name = Ivan Golikov
[push]
default = current
[diff]
external = difft
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[credential]
helper = cache --timeout=600
[core]
editor = nvim
autocrlf = input
[init]
defaultBranch = main

View file

@ -17,31 +17,27 @@
# 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.
home.packages = [ home.packages = with pkgs; [
pkgs.obsidian obsidian
pkgs.kitty kitty
pkgs.git git
pkgs.darktable darktable
pkgs.gparted gparted
pkgs.telegram-desktop telegram-desktop
pkgs.keepassxc keepassxc
pkgs.libreoffice libreoffice
pkgs.ungoogled-chromium ungoogled-chromium
pkgs.difftastic difftastic
pkgs.uv uv
pkgs.lazygit lazygit
pkgs.zoxide zoxide
pkgs.qmk qmk
pkgs.dos2unix dos2unix
pkgs.gnumake gnumake
pkgs.ripgrep ripgrep
pkgs.github-copilot-cli github-copilot-cli
pkgs.nerd-fonts.iosevka-term nerd-fonts.iosevka-term
pkgs.fzf fzf
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
# # It is sometimes useful to fine-tune packages, for example, by applying # # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the # # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of # # parentheses. Maybe you want to install Nerd Fonts with a limited number of
@ -63,6 +59,7 @@
# # 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;
".gitconfig".source = dotfiles/.gitconfig;
# # You can also set the file content immediately. # # You can also set the file content immediately.
# ".gradle/gradle.properties".text = '' # ".gradle/gradle.properties".text = ''

View file

@ -36,3 +36,12 @@ require'nvim-treesitter.configs'.setup {
}, },
} }
vim.opt.runtimepath:append(vim.fn.stdpath "data" .. "site") vim.opt.runtimepath:append(vim.fn.stdpath "data" .. "site")
-- Load last session when started without arguments
vim.api.nvim_create_autocmd("VimEnter", {
callback = function()
if vim.fn.argc() == 0 then
require("persistence").load()
end
end,
})