cnfgs
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./modules/zsh/zsh.nix
|
./modules/zsh/zsh.nix
|
||||||
|
/.modules/openai.nix
|
||||||
./modules/kitty.nix
|
./modules/kitty.nix
|
||||||
./modules/git.nix
|
./modules/git.nix
|
||||||
./modules/programs.nix
|
./modules/programs.nix
|
||||||
|
|||||||
@@ -74,7 +74,8 @@
|
|||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"caelestia shell &"
|
"caelestia shell &"
|
||||||
"caelestia shell lock lock; until [ $? -eq 0 ]; do sleep 1; caelestia shell lock lock; done"
|
"caelestia shell lock lock; until [ $? -eq 0 ]; do sleep 0.1; caelestia shell lock lock; done"
|
||||||
|
"AmneziaVPN & disown"
|
||||||
# "hyprlock --immediate-render --no-fade-in &"
|
# "hyprlock --immediate-render --no-fade-in &"
|
||||||
"wal -R &"
|
"wal -R &"
|
||||||
# "swww img ${config.home.homeDirectory}/Pictures/wallpaper.png &"
|
# "swww img ${config.home.homeDirectory}/Pictures/wallpaper.png &"
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.zsh.shellAliases = {
|
||||||
|
llm = ''
|
||||||
|
f() { llm "$@" | tee >(cat) | glow --style=dark --width=100; unset -f f; }; f'';
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ python312Packages.llm glow ];
|
||||||
|
}
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"kr0sh.ru" = {
|
"kr0sh.ru" = {
|
||||||
host = "kr0sh.ru";
|
host = "kr0sh.ru";
|
||||||
@@ -18,20 +17,28 @@
|
|||||||
identityFile = [ "~/.ssh/id" ];
|
identityFile = [ "~/.ssh/id" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"alpha" = {
|
||||||
|
host = "alpha";
|
||||||
|
hostname = "krosh.mooo.com";
|
||||||
|
port = 2006;
|
||||||
|
user = "root";
|
||||||
|
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||||
|
};
|
||||||
|
|
||||||
"homeserver" = {
|
"homeserver" = {
|
||||||
host = "homeserver";
|
host = "homeserver";
|
||||||
hostname = "192.168.3.71";
|
hostname = "192.168.3.71";
|
||||||
port = 2006;
|
port = 2006;
|
||||||
user = "krosh";
|
user = "krosh";
|
||||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"homeserver-wg" = {
|
"homeserver-wg" = {
|
||||||
host = "homeserver-wg";
|
host = "homeserver-wg";
|
||||||
hostname = "10.10.0.10";
|
hostname = "10.10.0.10";
|
||||||
port = 2006;
|
port = 2006;
|
||||||
user = "krosh";
|
user = "krosh";
|
||||||
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
identityFile = [ "~/.ssh/id_ed25519_sk" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"polus" = {
|
"polus" = {
|
||||||
@@ -54,20 +61,20 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ssh.enableDefaultConfig = false;
|
programs.ssh.enableDefaultConfig = false;
|
||||||
|
|
||||||
programs.ssh.matchBlocks."*" = {
|
programs.ssh.matchBlocks."*" = {
|
||||||
forwardAgent = false;
|
forwardAgent = false;
|
||||||
addKeysToAgent = "no";
|
addKeysToAgent = "no";
|
||||||
compression = false;
|
compression = false;
|
||||||
serverAliveInterval = 0;
|
serverAliveInterval = 0;
|
||||||
serverAliveCountMax = 3;
|
serverAliveCountMax = 3;
|
||||||
hashKnownHosts = false;
|
hashKnownHosts = false;
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
userKnownHostsFile = "~/.ssh/known_hosts";
|
||||||
controlMaster = "no";
|
controlMaster = "no";
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
controlPath = "~/.ssh/master-%r@%n:%p";
|
||||||
controlPersist = "no";
|
controlPersist = "no";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.ssh-agent.enable = true;
|
# services.ssh-agent.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user