nix-config/users/common/default.nix
Patrick Großmann e9085b6775
feat: added additional software for hyprland
WIP: added waybar
chore: added ssh conf for compiler construction
2023-03-20 15:05:59 +09:00

128 lines
2.5 KiB
Nix

{
config,
pkgs,
...
}: {
imports = [
./shells/zsh.nix
#./shells/fish.nix
./programs/htop.nix
./shells/alias.nix
];
home.stateVersion = "23.05";
home.packages = with pkgs; [
sqlite
bat
];
# has to be enabled to support zsh reverse search
programs.fzf.enable = true;
programs.gpg = {
enable = true;
settings = import ../../data/gpg/gpg.conf.nix;
scdaemonSettings.disable-ccid = true;
publicKeys = [
{
source = ../../data/gpg/pubkey.gpg;
trust = 5;
}
{
source = ../../data/gpg/newpubkey.gpg;
trust = 5;
}
];
};
home.file.".ssh/1.pub".text = ''
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZixkix0KfKuq7Q19whS5FQQg51/AJGB5BiNF/7h/LM cardno:15 489 049
'';
home.file.".ssh/2.pub".text = ''
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHxD4GOrwrBTG4/qQhm5hoSB2CP7W9g1LPWP11oLGOjQ cardno:23 010 997
'';
programs.ssh = {
enable = true;
matchBlocks = let
identityFile = ["~/.ssh/1.pub" "~/.ssh/2.pub"];
in {
"elisabeth" = {
hostname = "lel.lol";
user = "root";
inherit identityFile;
};
"WSALVM" = {
hostname = "172.10.8.156";
user = "root";
inherit identityFile;
};
"CompConst" = {
hostname = "cp-service.kaist.ac.kr";
user = "s20236085";
port = 13001;
inherit identityFile;
};
"valhalla" = {
hostname = "valhalla.fs.tum.de";
user = "grossmann";
inherit identityFile;
};
"elisabethprivate" = {
hostname = "lel.lol";
user = "patrick";
inherit identityFile;
};
"*.lel.lol" = {
inherit identityFile;
};
"localhost" = {
inherit identityFile;
};
"gitlab.lrz.de" = {
inherit identityFile;
};
"*" = {
identitiesOnly = true;
};
};
};
programs.neovim = {
enable = true;
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
defaultEditor = true;
withNodeJs = true;
};
xdg.configFile.nvim = {
recursive = true;
source = ../../data/nvim;
};
programs.git.enable = true;
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
programs.git = {
aliases = {
cs = "commit -v -S";
s = "status";
a = "add";
p = "push";
};
extraConfig.init.defaultBranch = "main";
extraConfig.pull.ff = "only";
signing = {
key = null;
signByDefault = true;
};
};
}