fixed ssh
This commit is contained in:
parent
64d5097f1a
commit
d178606f7d
9 changed files with 380 additions and 9 deletions
|
|
@ -16,6 +16,7 @@
|
|||
../modules/fish.nix
|
||||
../modules/editor/helix.nix
|
||||
|
||||
../modules/btop.nix
|
||||
../modules/rio.nix
|
||||
../modules/firefox.nix
|
||||
../modules/nixcord.nix
|
||||
|
|
@ -89,6 +90,25 @@
|
|||
# these are both required for home-manager to work
|
||||
home-manager.enable = true;
|
||||
|
||||
# set ssh profiles
|
||||
# (all we need is hyrule, everything else is through wishlist)
|
||||
# NOTE: (IMPORTANT) this DOES NOT start the ssh-agent
|
||||
# for that you need to use `services.ssh-agent-enable`
|
||||
ssh = {
|
||||
enable = true;
|
||||
forwardAgent = true;
|
||||
addKeysToAgent = "yes"; # always add keys to ssh-agent
|
||||
|
||||
matchBlocks = {
|
||||
hyrule = {
|
||||
hostname = "imbored.dev";
|
||||
user = "ae";
|
||||
port = 22;
|
||||
identityFile = "/home/me/.ssh/id_hyrule";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ags = {
|
||||
enable = true;
|
||||
configDir = ./ags;
|
||||
|
|
@ -131,6 +151,11 @@
|
|||
*/
|
||||
};
|
||||
|
||||
# enable OpenSSH private key agent
|
||||
services.ssh-agent.enable = true;
|
||||
# the ssh-agent won't set this for itself...
|
||||
systemd.user.sessionVariables.SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/ssh-agent";
|
||||
|
||||
# ----- SERVICES -----
|
||||
# Nicely reload system units when changing configs
|
||||
systemd.user.startServices = "sd-switch";
|
||||
|
|
|
|||
79
homes/modules/btop.nix
Normal file
79
homes/modules/btop.nix
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{config, ...}: {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
# Theming
|
||||
color_theme = "dracula";
|
||||
theme_background = true;
|
||||
truecolor = true;
|
||||
force_tty = false;
|
||||
vim_keys = false; # allow vim keybindings
|
||||
# Units
|
||||
clock_format = "%I:%M %p, %b %d";
|
||||
temp_scale = "celsius";
|
||||
base_10_sizes = false; # use KB or KiB
|
||||
|
||||
# UI
|
||||
background_update = true;
|
||||
update_ms = 2000;
|
||||
rounded_corners = false;
|
||||
graph_symbol = "braille"; # braille/block/tty
|
||||
graph_symbol_cpu = "default";
|
||||
graph_symbol_mem = "default";
|
||||
graph_symbol_net = "default";
|
||||
graph_symbol_proc = "default";
|
||||
|
||||
# Processes Window
|
||||
proc_left = true; # show on left side of window
|
||||
proc_colors = true;
|
||||
proc_gradient = true;
|
||||
proc_per_core = false; # false: % of ALL cores
|
||||
proc_mem_bytes = false; # show mem usage as %
|
||||
proc_sorting = "cpu lazy";
|
||||
proc_filter_kernel = false; # hide kernel child processes
|
||||
proc_tree = false;
|
||||
|
||||
# CPU Window
|
||||
cpu_bottom = false; # display at bottom of window
|
||||
show_uptime = true;
|
||||
show_cpu_freq = true;
|
||||
check_temp = true; # show cpu temp
|
||||
show_coretemp = true; # show temp per core
|
||||
cpu_graph_upper = "total"; # upper graph shows total CPU usage
|
||||
cpu_graph_lower = "user"; # lower graph shows user's CPU usage
|
||||
cpu_invert_lower = true;
|
||||
cpu_single_graph = false; # disable lower graph
|
||||
show_gpu_info = "Off"; # Auto/On/Off
|
||||
gpu_mirror_graph = false; # horizontally mirror gpu graph
|
||||
|
||||
# Memory Window
|
||||
mem_below_net = false; # show below net window
|
||||
mem_graphs = true; # show graphs not meters
|
||||
show_swap = true; # show swap memory usage
|
||||
# Disks Subwindow
|
||||
show_disks = true; # split mem box to show disk info
|
||||
swap_disk = true; # show swap memory as disk
|
||||
show_io_stat = true;
|
||||
io_graph_combined = false; # combine read/write stats
|
||||
io_mode = true; # show io stat as graph
|
||||
use_fstab = true; # read disk list from /etc/fstab
|
||||
only_physical = false; # ignore non-physical disks
|
||||
|
||||
# Network Window
|
||||
net_iface = ""; # default network interface to monitor
|
||||
net_auto = true; # overrides net_download/net_upload (below)
|
||||
net_sync = false; # sync download/upload graph scales
|
||||
net_download = 100; # max download speed graphed
|
||||
net_upload = 100; # max upload speed graphed
|
||||
|
||||
# Battery
|
||||
show_battery = true;
|
||||
selected_battery = "Auto";
|
||||
show_battery_watts = true;
|
||||
|
||||
# Other
|
||||
log_level = "WARNING"; # ERROR/WARNING/INFO/DEBUG
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# NOTE: hyprland must be enabled in BOTH your host config (for running hyprland)
|
||||
# and your home-manager config (for managing hyprland's config files)
|
||||
Loading…
Add table
Add a link
Reference in a new issue