ssh configs

This commit is contained in:
Jeremy Janella
2026-10-23 19:01:00 -04:00
parent a0daf842c9
commit 939949f75a
9 changed files with 57 additions and 59 deletions
+2 -1
View File
@@ -398,13 +398,14 @@
claude-code claude-code
gdb gdb
tldr tldr
rust-analyzer
]; ];
}; };
# Use https://search.nixos.org/ to find more packages (and options). # Use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
firefox firefox
neovim inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.neovim
wget wget
gnome-disk-utility gnome-disk-utility
dunst dunst
Generated
+3 -3
View File
@@ -39,11 +39,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1787498568, "lastModified": 1792502884,
"narHash": "sha256-9i/VTdusq/+NM/tz+J1Re+ojkMB8MBf0QshnYfzHz30=", "narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "56c02bc00adcf003215cc4bd996d6efaf4cff188", "rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
"type": "github" "type": "github"
}, },
"original": { "original": {
+3 -1
View File
@@ -10,7 +10,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
# Optional: Unstable branch for things like Ollama or Hyprland
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
}; };
@@ -26,6 +25,7 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama; ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
neovim = nixpkgs-unstable.legacyPackages.${prev.system}.neovim;
}) })
]; ];
} }
@@ -42,6 +42,7 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama; ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
neovim = nixpkgs-unstable.legacyPackages.${prev.system}.neovim;
}) })
]; ];
} }
@@ -58,6 +59,7 @@
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama; ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
neovim = nixpkgs-unstable.legacyPackages.${prev.system}.neovim;
}) })
]; ];
} }
+34 -32
View File
@@ -1,39 +1,41 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git" local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({ vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" }, { "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" }, { out, "WarningMsg" },
{ "\nPress any key to exit..." }, { "\nPress any key to exit..." },
}, true, {}) }, true, {})
vim.fn.getchar() vim.fn.getchar()
os.exit(1) os.exit(1)
end end
end end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" }, { "LazyVim/LazyVim", import = "lazyvim.plugins" },
{ import = "plugins" }, { import = "lazyvim.plugins.extras.lang.typst" },
}, { import = "lazyvim.plugins.extras.lang.rust" },
defaults = { { import = "plugins" },
lazy = false, },
version = false, defaults = {
}, lazy = false,
install = { colorscheme = { "tokyonight", "habamax" } }, version = false,
checker = { enabled = true }, },
performance = { install = { colorscheme = { "tokyonight", "habamax" } },
rtp = { checker = { enabled = true },
disabled_plugins = { performance = {
"gzip", rtp = {
"tarPlugin", disabled_plugins = {
"tohtml", "gzip",
"tutor", "tarPlugin",
"zipPlugin", "tohtml",
}, "tutor",
}, "zipPlugin",
}, },
},
},
}) })
+1
View File
@@ -1 +1,2 @@
nix flake update
sudo nixos-rebuild switch --flake .#$(hostname) sudo nixos-rebuild switch --flake .#$(hostname)
+2 -1
View File
@@ -12,11 +12,12 @@
ForwardX11Trusted yes ForwardX11Trusted yes
IdentityFile ~/.ssh/id_ed25519 IdentityFile ~/.ssh/id_ed25519
Host scinet Host teach
HostName teach.scinet.utoronto.ca HostName teach.scinet.utoronto.ca
User lcl_uotcscd60s2180 User lcl_uotcscd60s2180
ForwardX11 yes ForwardX11 yes
ForwardX11Trusted yes ForwardX11Trusted yes
SetEnv TERM=xterm-256color
IdentityFile ~/.ssh/id_ed25519 IdentityFile ~/.ssh/id_ed25519
Host node Host node
+3 -3
View File
@@ -1,11 +1,11 @@
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"margin": "5 0", "margin": "0 0",
"modules-left" : ["group/left-hidden-top", "group/left"], "modules-left" : ["group/left"],
"modules-center" : ["clock"], "modules-center" : ["clock"],
"modules-right" : [ "group/right", "group/right-hidden-top"], "modules-right" : [ "group/right", "group/left-hidden-top", "group/right-hidden-top"],
"include": [ "~/.config/waybar/modules.jsonc" ] "include": [ "~/.config/waybar/modules.jsonc" ]
} }
+2 -12
View File
@@ -9,13 +9,8 @@
"group/left-hidden" : { "group/left-hidden" : {
"orientation": "horizontal", "orientation": "horizontal",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false,
"click-to-reveal": true
},
"modules" : [ "modules" : [
"custom/arrow-right", "battery", "cpu", "load" "battery", "cpu", "load"
] ]
}, },
@@ -33,13 +28,8 @@
"group/right-hidden" : { "group/right-hidden" : {
"orientation": "horizontal", "orientation": "horizontal",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": true,
"click-to-reveal": true
},
"modules" : [ "modules" : [
"custom/arrow-left", "memory", "temperature" "memory", "temperature"
] ]
}, },
+6 -5
View File
@@ -12,9 +12,10 @@
#waybar { #waybar {
font-weight: 700; font-weight: 700;
background: transparent; background: #000000;
font-size: 14px; font-size: 14px;
color: @fg; color: @fg;
min-height: 0;
} }
/* global paddings */ /* global paddings */
@@ -63,9 +64,9 @@
#left-hidden-top, #left-hidden-top,
#clock { #clock {
padding: 0px 10px; padding: 0px 10px;
border-radius: 15px; border-radius: 0;
background: @module-bg; background: transparent;
border: 1px solid @border; border: none;
} }
#right-hidden-top, #right-hidden-top,
@@ -74,7 +75,7 @@
} }
#right, #left { #right, #left {
margin: 0 8px; margin: 0;
} }
#clock { #clock {