add ssh and jj

This commit is contained in:
Jana Dönszelmann 2026-03-17 11:16:22 +01:00
parent e6522bdb86
commit 9583e816d6
No known key found for this signature in database
5 changed files with 91 additions and 32 deletions

View file

@ -1,9 +1,8 @@
{
lib,
pkgs,
config,
secrets,
...
{ lib
, pkgs
, config
, secrets
, ...
}:
let
factorioVersion =
@ -61,12 +60,11 @@ let
};
privateUsers = "no";
imports =
{
config,
pkgs,
lib,
...
config =
{ config
, pkgs
, lib
, ...
}:
{
systemd.services.factorio.serviceConfig.User = "factorio";
@ -108,7 +106,8 @@ in
};
containers =
factorioContainer "tawney" {
factorioContainer "tawney"
{
autosave-interval = 20;
admins = [
"jonay2000"

View file

@ -4,6 +4,7 @@
imports = lib.concatLists [
[
./xdg.nix
./ssh.nix
./nvim
./fish
./kanata
@ -43,11 +44,10 @@
inherit inputs;
requirements = [ "graphical" ];
home-config =
{
config,
pkgs,
lib,
...
{ config
, pkgs
, lib
, ...
}:
let
disableFeatures = [

View file

@ -100,8 +100,6 @@ inputs@{ machine, ... }:
"-c"
script
];
in
{
tug = [
"bookmark"
"move"
@ -110,6 +108,9 @@ inputs@{ machine, ... }:
"--to"
"coalesce(@ & ~empty(), @-)"
];
in
{
inherit tug;
fuck = [
"bookmark"
"move"
@ -153,6 +154,20 @@ inputs@{ machine, ... }:
"--from"
"trunk()"
];
next = [ "edit" "@+" ];
n = [ "edit" "@+" ];
prev = [ "edit" "@-" ];
p = [ "edit" "@-" ];
gp = [ "git" "push" ];
t = tug;
d = "describe";
dm = [ "describe" "-m" ];
e = "edit";
s = "squash";
si = "squash -i";
sp = "split";
};
templates = {

42
programs/ssh.nix Normal file
View file

@ -0,0 +1,42 @@
inputs@{ machine, ... }: {
imports =
machine.program {
name = "ssh";
inherit inputs;
requirements = [ "cli" ];
home-config = _: {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
fili = {
user = "jana";
hostname = "donsz.nl";
};
icecube = {
hostname = "192.168.178.138";
proxyJump = "fili";
};
ragdoll = {
hostname = "192.168.178.138";
proxyJump = "fili";
};
"*" = {
forwardAgent = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
compression = false;
addKeysToAgent = null;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = null;
};
};
};
};
}
;
}

View file

@ -120,6 +120,9 @@ inputs@{ machine, ... }:
bind x swap-pane -D
bind z resize-pane -Z
# swap a full screen and terminal
bind a if -F "#{?window_zoomed_flag,0,1}" "select-pane -l ; resize-pane -Z" "resize-pane -Z ; select-pane -l"
# double-click ^k (or lshift with kanata) for previous pane like ^w in vim
bind -r ^k select-pane -l
bind q confirm-before -p "kill-pane #P? (y/n)" kill-pane
@ -132,7 +135,7 @@ inputs@{ machine, ... }:
bind r source-file ~/.config/tmux/tmux.conf \; display "config reloaded"
bind ? list-keys
# Scroll oin man etc
# Scroll in man etc
tmux_commands_with_legacy_scroll="nano less more man git"
bind -T root WheelUpPane \