init
This commit is contained in:
6
profiles/apollo/hm/default.nix
Normal file
6
profiles/apollo/hm/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }: {
|
||||
imports = [
|
||||
./ssh
|
||||
./hyprland.nix
|
||||
];
|
||||
}
|
||||
11
profiles/apollo/hm/hyprland.nix
Normal file
11
profiles/apollo/hm/hyprland.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
sessionVariables = {
|
||||
# for hyprland with nvidia gpu, ref https://wiki.hyprland.org/Nvidia/
|
||||
# 启用注释部分会导致NVIDIA下无法启动hyprland
|
||||
WLR_DRM_DEVICES = "/dev/dri/card1:/dev/dri/card0";
|
||||
};
|
||||
};
|
||||
}
|
||||
66
profiles/apollo/hm/ssh/config
Normal file
66
profiles/apollo/hm/ssh/config
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
|
||||
Host *
|
||||
ForwardAgent no
|
||||
AddKeysToAgent no
|
||||
Compression no
|
||||
ServerAliveInterval 0
|
||||
ServerAliveCountMax 3
|
||||
HashKnownHosts no
|
||||
UserKnownHostsFile ~/.ssh/known_hosts
|
||||
ControlMaster no
|
||||
ControlPath ~/.ssh/master-%r@%n:%p
|
||||
ControlPersist no
|
||||
|
||||
Host gaea
|
||||
HostName 10.7.43.20
|
||||
|
||||
Host zion
|
||||
HostName 10.7.43.1
|
||||
User root
|
||||
|
||||
Host themis
|
||||
HostName 10.7.43.30
|
||||
|
||||
Host armor
|
||||
HostName armor.synebula.com
|
||||
|
||||
Host server.company
|
||||
HostName file.xzdcbj.com.cn
|
||||
User xzdc
|
||||
Port 57982
|
||||
|
||||
Host server.info
|
||||
HostName info.xzdcbj.com.cn
|
||||
User info
|
||||
|
||||
Host server.file
|
||||
HostName file.xzdcbj.com.cn
|
||||
User file
|
||||
|
||||
Host server.armor
|
||||
HostName armor.synebula.com
|
||||
|
||||
Host ems.hc
|
||||
Port 57991
|
||||
User root
|
||||
|
||||
Host ems.cx
|
||||
Port 57996
|
||||
|
||||
Host ems.ph
|
||||
Port 57996
|
||||
|
||||
Host ems.yt
|
||||
Port 57996
|
||||
User xzdc
|
||||
|
||||
Host ems.*
|
||||
HostName file.xzdcbj.com.cn
|
||||
User ems
|
||||
|
||||
Host *
|
||||
Port 22
|
||||
User alex
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
|
||||
10
profiles/apollo/hm/ssh/default.nix
Normal file
10
profiles/apollo/hm/ssh/default.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.file.".ssh/config" = {
|
||||
source = ./config;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user