Add ssh config

This commit is contained in:
Torjus Håkestad 2024-03-04 08:14:08 +01:00
parent c11bc57eb2
commit 705c9ba011
7 changed files with 24 additions and 7 deletions

View File

@ -7,15 +7,16 @@
]
},
"locked": {
"lastModified": 1709485962,
"narHash": "sha256-rmFB4uE10+LJbcVE4ePgiuHOBlUIjQOeZt4VQVJTU8M=",
"lastModified": 1706981411,
"narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d579633ff9915a8f4058d5c439281097e92380a8",
"rev": "652fda4ca6dafeb090943422c34ae9145787af37",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-23.11",
"repo": "home-manager",
"type": "github"
}

View File

@ -5,7 +5,7 @@
# nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-23.11";
home-manager = {
url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager?ref=release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};

View File

@ -16,7 +16,7 @@
./zsh
./packages
./hyprland
./i3
./ssh
];
firefox.enable = true;
tmux.enable = true;

View File

@ -23,9 +23,9 @@
"$term" = "kitty";
monitor = [
"DP-3,1920x1080@60,2560x0,1" # top
"DP-6,1920x1080@60,2560x0,1" # top T2B04424SL000
"DP-8,2560x1440@75,0x1080,1" # left
"DP-2,2560x1440@120,2560x1080,1" # main
"DP-5,2560x1440@120,2560x1080,1" # main #ASPVEKfgZ8Dd
"DP-7,2560x1440@75,5120x1080,1" # right
];
input = {

1
home/ssh/default.nix Normal file
View File

@ -0,0 +1 @@
{ imports = [ ./gunter.nix ]; }

12
home/ssh/gunter.nix Normal file
View File

@ -0,0 +1,12 @@
{ pkgs, ... }: {
programs.ssh = {
enable = true;
matchBlocks."bmo.uio.no" = {
hostname = "bmo.uio.no";
extraOptions = {
ControlMaster = "auto";
ControlPath = "$XDG_RUNTIME_DIR/ssh/%r@%h:%p";
};
};
};
}

View File

@ -14,6 +14,9 @@
shell = pkgs.zsh;
# Install some user packages
packages = with pkgs; [
firefox
mumble
easyeffects
];
};
}