Compare commits
7
Commits
f1b6a637aa
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3ca83f83f | ||
|
|
2b0decd620 | ||
|
|
f7cbec885b | ||
|
|
492357022e | ||
|
|
fea98efeba | ||
|
|
281175418d | ||
|
|
0e4944edad |
@@ -189,8 +189,8 @@
|
|||||||
|
|
||||||
#", Print, exec, grimblast --freeze copy area"
|
#", Print, exec, grimblast --freeze copy area"
|
||||||
#"SHIFT, Print, exec, grimblast copy screen"
|
#"SHIFT, Print, exec, grimblast copy screen"
|
||||||
", Print, exec, mkdir -p ~/Pictures/Screenshots && grimblast --freeze copy area ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png"
|
", Print, exec, grimblast --freeze copysave area ~/screenshot.png"
|
||||||
"$mod, Print, exec, mkdir -p ~/Pictures/Screenshots && grimblast save screen ~/Pictures/Screenshots/$(date +%Y-%m-%d_%H-%M-%S).png"
|
"$mod, Print, exec, grimblast copysave screen ~/screenshot.png"
|
||||||
|
|
||||||
"$mod SHIFT, Escape, exec, systemctl suspend"
|
"$mod SHIFT, Escape, exec, systemctl suspend"
|
||||||
];
|
];
|
||||||
@@ -386,6 +386,12 @@
|
|||||||
rust-analyzer
|
rust-analyzer
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
|
pyright
|
||||||
|
ruff
|
||||||
|
clang-tools
|
||||||
|
bash-language-server
|
||||||
|
shellcheck
|
||||||
|
shfmt
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -419,6 +425,7 @@
|
|||||||
adwaita-icon-theme gnome-themes-extra
|
adwaita-icon-theme gnome-themes-extra
|
||||||
networkmanagerapplet pavucontrol brightnessctl
|
networkmanagerapplet pavucontrol brightnessctl
|
||||||
wl-clipboard grim slurp grimblast nautilus
|
wl-clipboard grim slurp grimblast nautilus
|
||||||
|
just
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Generated
+6
-6
@@ -39,11 +39,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-2605": {
|
"nixpkgs-2605": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792615934,
|
"lastModified": 1793183032,
|
||||||
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
|
"narHash": "sha256-56mFMf8heLNfYhcgbrh4GpN5x+G9JOfTFXZC3n6w0qM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
|
"rev": "08d3a97586f6b6343b3b5e799980773629432610",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -55,11 +55,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792502884,
|
"lastModified": 1793110635,
|
||||||
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
|
"narHash": "sha256-dhoW6VgFWlaodSY5jrBn+CF2FLmaUvDVgM7+C7T2+NM=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
|
"rev": "31ecbaca1bdefa45dffc409f0250bd8039ea0010",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
upgrade *message:
|
||||||
|
just test
|
||||||
|
just commit {{message}}
|
||||||
|
just rebuild
|
||||||
|
|
||||||
|
rebuild:
|
||||||
|
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||||
|
|
||||||
|
build-vm:
|
||||||
|
nixos-rebuild build-vm --flake .#$(hostname)
|
||||||
|
|
||||||
|
update:
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
gc:
|
||||||
|
sudo nix-collect-garbage -d
|
||||||
|
|
||||||
|
test:
|
||||||
|
sudo nixos-rebuild build --flake .#$(hostname)
|
||||||
|
|
||||||
|
commit *message:
|
||||||
|
git add -u .
|
||||||
|
git commit -m "{{message}}"
|
||||||
|
git pull --rebase
|
||||||
|
git push
|
||||||
|
|
||||||
@@ -26,5 +26,13 @@
|
|||||||
xdg.configFile."nvim/lua/config/keymaps.lua".source = ./nvim/lua/config/keymaps.lua;
|
xdg.configFile."nvim/lua/config/keymaps.lua".source = ./nvim/lua/config/keymaps.lua;
|
||||||
xdg.configFile."nvim/lua/config/autocmds.lua".source = ./nvim/lua/config/autocmds.lua;
|
xdg.configFile."nvim/lua/config/autocmds.lua".source = ./nvim/lua/config/autocmds.lua;
|
||||||
xdg.configFile."nvim/lua/plugins/example.lua".source = ./nvim/lua/plugins/example.lua;
|
xdg.configFile."nvim/lua/plugins/example.lua".source = ./nvim/lua/plugins/example.lua;
|
||||||
|
xdg.configFile."nvim/lua/plugins/bash.lua".source = ./nvim/lua/plugins/bash.lua;
|
||||||
|
xdg.configFile."nvim/lua/plugins/clangd.lua".source = ./nvim/lua/plugins/clangd.lua;
|
||||||
|
xdg.configFile."nvim/lua/plugins/img-clip.lua".source = ./nvim/lua/plugins/img-clip.lua;
|
||||||
|
xdg.configFile."nvim/lua/plugins/colorscheme.lua".source = ./nvim/lua/plugins/colorscheme.lua;
|
||||||
|
xdg.configFile."clangd/config.yaml".text = ''
|
||||||
|
CompileFlags:
|
||||||
|
Compiler: gcc
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,8 @@ require("lazy").setup({
|
|||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.typst" },
|
{ import = "lazyvim.plugins.extras.lang.typst" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.clangd" },
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
opts = function(_, opts)
|
||||||
|
if type(opts.ensure_installed) == "table" then
|
||||||
|
vim.list_extend(opts.ensure_installed, { "bash" })
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
bashls = {
|
||||||
|
filetypes = { "sh", "bash", "zsh" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"stevearc/conform.nvim",
|
||||||
|
opts = {
|
||||||
|
formatters_by_ft = {
|
||||||
|
sh = { "shfmt" },
|
||||||
|
bash = { "shfmt" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
opts = {
|
||||||
|
linters_by_ft = {
|
||||||
|
sh = { "shellcheck" },
|
||||||
|
bash = { "shellcheck" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
clangd = {
|
||||||
|
cmd = {
|
||||||
|
"clangd",
|
||||||
|
"--background-index",
|
||||||
|
"--clang-tidy",
|
||||||
|
"--header-insertion=iwyu",
|
||||||
|
"--completion-style=detailed",
|
||||||
|
"--function-arg-placeholders",
|
||||||
|
"--fallback-style=llvm",
|
||||||
|
"--query-driver=/etc/profiles/per-user/*/bin/gcc,/etc/profiles/per-user/*/bin/g++,/run/current-system/sw/bin/gcc,/run/current-system/sw/bin/g++,/nix/store/*/bin/gcc,/nix/store/*/bin/g++",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
return {
|
||||||
|
{ "Mofiqul/vscode.nvim" },
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = { colorscheme = "vscode" },
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
return {
|
||||||
|
{
|
||||||
|
"HakonHarnes/img-clip.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
default = {
|
||||||
|
embed_image_as_base64 = false,
|
||||||
|
prompt_for_file_name = false,
|
||||||
|
drag_and_drop = {
|
||||||
|
insert_mode = true,
|
||||||
|
},
|
||||||
|
use_absolute_path = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>p", "<cmd>PasteImage<cr>", desc = "Paste image from system clipboard" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -1,2 +1 @@
|
|||||||
nix flake update
|
|
||||||
sudo nixos-rebuild switch --flake .#$(hostname)
|
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
imports = [ ./nvim.nix ];
|
imports = [ ./nvim.nix ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ tree ];
|
environment.systemPackages = with pkgs; [ tree sshfs ];
|
||||||
|
|
||||||
programs.ssh.extraConfig = ''
|
programs.ssh.extraConfig = ''
|
||||||
Host rocky
|
Host rocky
|
||||||
@@ -16,8 +16,6 @@
|
|||||||
Host teach
|
Host teach
|
||||||
HostName teach.scinet.utoronto.ca
|
HostName teach.scinet.utoronto.ca
|
||||||
User lcl_uotcscd60s2180
|
User lcl_uotcscd60s2180
|
||||||
ForwardX11 yes
|
|
||||||
ForwardX11Trusted yes
|
|
||||||
SetEnv TERM=xterm-256color
|
SetEnv TERM=xterm-256color
|
||||||
IdentityFile ~/.ssh/id_ed25519
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
|
||||||
@@ -25,6 +23,7 @@
|
|||||||
Hostname janel.la
|
Hostname janel.la
|
||||||
User jeremy
|
User jeremy
|
||||||
ForwardX11Trusted yes
|
ForwardX11Trusted yes
|
||||||
|
SetEnv TERM=xterm-256color
|
||||||
IdentityFile ~/.ssh/id_ed25519
|
IdentityFile ~/.ssh/id_ed25519
|
||||||
|
|
||||||
Host predator
|
Host predator
|
||||||
|
|||||||
Reference in New Issue
Block a user