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
lib, , pkgs
pkgs, , config
config, , secrets
secrets, , ...
...
}: }:
let let
factorioVersion = factorioVersion =
@ -61,12 +60,11 @@ let
}; };
privateUsers = "no"; privateUsers = "no";
imports = config =
{ { config
config, , pkgs
pkgs, , lib
lib, , ...
...
}: }:
{ {
systemd.services.factorio.serviceConfig.User = "factorio"; systemd.services.factorio.serviceConfig.User = "factorio";
@ -108,18 +106,19 @@ in
}; };
containers = containers =
factorioContainer "tawney" { factorioContainer "tawney"
autosave-interval = 20; {
admins = [ autosave-interval = 20;
"jonay2000" admins = [
"computerdruid" "jonay2000"
"pineapple" "computerdruid"
]; "pineapple"
extraSettingsFile = config.sops.secrets.factorio.path; ];
# mods = getMods .factorio-mods/tawney; extraSettingsFile = config.sops.secrets.factorio.path;
package = factorioVersion "2.0.69" "sha256-I1FHuz7WtfCmmTiTxskv3+U1upWrhmBG9R+GUoS1c0E="; # mods = getMods .factorio-mods/tawney;
port = 20001; package = factorioVersion "2.0.69" "sha256-I1FHuz7WtfCmmTiTxskv3+U1upWrhmBG9R+GUoS1c0E=";
} port = 20001;
}
// factorioContainer "snek" { // factorioContainer "snek" {
autosave-interval = 20; autosave-interval = 20;
admins = [ admins = [

View file

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

View file

@ -100,8 +100,6 @@ inputs@{ machine, ... }:
"-c" "-c"
script script
]; ];
in
{
tug = [ tug = [
"bookmark" "bookmark"
"move" "move"
@ -110,6 +108,9 @@ inputs@{ machine, ... }:
"--to" "--to"
"coalesce(@ & ~empty(), @-)" "coalesce(@ & ~empty(), @-)"
]; ];
in
{
inherit tug;
fuck = [ fuck = [
"bookmark" "bookmark"
"move" "move"
@ -153,6 +154,20 @@ inputs@{ machine, ... }:
"--from" "--from"
"trunk()" "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 = { 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 x swap-pane -D
bind z resize-pane -Z 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 # double-click ^k (or lshift with kanata) for previous pane like ^w in vim
bind -r ^k select-pane -l bind -r ^k select-pane -l
bind q confirm-before -p "kill-pane #P? (y/n)" kill-pane 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 r source-file ~/.config/tmux/tmux.conf \; display "config reloaded"
bind ? list-keys bind ? list-keys
# Scroll oin man etc # Scroll in man etc
tmux_commands_with_legacy_scroll="nano less more man git" tmux_commands_with_legacy_scroll="nano less more man git"
bind -T root WheelUpPane \ bind -T root WheelUpPane \