Evie Litherland-Smith
5ff572a9b7
Move home/ directory under system/ directory. Remove duplicated machine-specific config files, now handled as one per host (excluding hardware-configuration directory) Move as much configuration as possible out of flake.nix and into more appropriate files (e.g. system/default.nix) Add a desktop.nix and laptop.nix for system, both will import home/desktop.nix and home/laptop.nix respectively to reduce duplication in machine-specific config files Remove games and streaming directories, moved directly into Vanguard config file Remove home/personal.nix since it ended up being empty after changes Remove old sway config since I haven't been maintaining it and this refactor will definitely break it
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
home.packages = with pkgs; [
|
|
(writeShellScriptBin "ssh-keygen-defaults" ''ssh-keygen -t ed25519 -C "$(whoami)@$(hostname)"'')
|
|
];
|
|
programs.ssh = {
|
|
enable = true;
|
|
addKeysToAgent = "yes";
|
|
forwardAgent = true;
|
|
compression = true;
|
|
serverAliveInterval = 15;
|
|
serverAliveCountMax = 3;
|
|
controlMaster = "auto";
|
|
controlPersist = "10s";
|
|
extraConfig = ''
|
|
SetEnv TERM=xterm-256color
|
|
'';
|
|
matchBlocks = {
|
|
"git*".user = "git";
|
|
"legion" = {
|
|
user = "pixelifytica";
|
|
hostname = "192.168.0.31";
|
|
};
|
|
"vanguard" = {
|
|
user = "pixelifytica";
|
|
hostname = "192.168.0.90";
|
|
};
|
|
"ionos" = {
|
|
user = "root";
|
|
hostname = "77.68.67.133";
|
|
};
|
|
"freia" = {
|
|
user = "elitherl";
|
|
hostname = "freia027.hpc.l";
|
|
compression = true;
|
|
};
|
|
"heimdall" = {
|
|
user = "elitherl";
|
|
hostname = "10.40.4.115"; # heimdall115.jetdata.eu
|
|
compression = true;
|
|
};
|
|
};
|
|
};
|
|
}
|