update ssh config

This commit is contained in:
2025-12-16 05:21:36 +01:00
parent 5aec1e5e03
commit a0df72d834
3 changed files with 90 additions and 10 deletions

45
flake.lock generated
View File

@@ -21,6 +21,27 @@
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": [
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733312601,
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
@@ -79,11 +100,33 @@
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1765846734,
"narHash": "sha256-xPno2sNwqa9rYaOnJTPhqtZwMiqYwyvWK6trGqMCrkA=",
"owner": "nix-community",
"repo": "NUR",
"rev": "7c8a6ae3f2eac660bb70392cab9a9d2b6f7215c8",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim"
"nixvim": "nixvim",
"nur": "nur"
}
},
"systems": {

View File

@@ -12,10 +12,10 @@
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
# nur = {
# url = "github:nix-community/NUR";
# inputs.nixpkgs.follows = "nixpkgs";
# };
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs: {

View File

@@ -1,4 +1,9 @@
{ lib, pkgs, config, ... }:
{
lib,
pkgs,
config,
...
}:
{
home = {
username = "vbm";
@@ -44,6 +49,37 @@
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks."*" = {
addKeysToAgent = "yes";
forwardAgent = false;
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
matchBlocks."pvv-git git.pvv.ntnu.no" = {
port = 2222;
user = "Gitea";
hostname = "git.pvv.ntnu.no";
addressFamily = "inet";
proxyJump = "microbel";
identityFile = "~/.ssh/pvv_gitea_id_ed25519";
};
matchBlocks."microbel" = {
user = "vegardbm";
hostname = "microbel.pvv.ntnu.no";
addressFamily = "inet";
identityFile = "~/.ssh/pvv_gitea_id_ed25519";
};
};
programs.nixvim = {
enable = true;
colorschemes.catppuccin.enable = true;
@@ -217,11 +253,12 @@
"browser.urlbar.suggest.topsites" = false;
"browser.urlbar.suggest.recentsearches" = false;
"places.history.enabled" = false;
"webgl.disabled" = false;
};
# extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
# darkreader
# bypass-paywalls-clean
# ];
# extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
# darkreader
# bypass-paywalls-clean
# ];
search.force = true;
search.engines = {
nix-packages = {