a lot of things...

This commit is contained in:
Sebastian Moser
2024-12-02 20:00:51 +01:00
parent d132ce5342
commit 87adea3ded
14 changed files with 309 additions and 138 deletions

View File

@@ -138,6 +138,9 @@
#################### functions ####################
nrel(){
nix repl --expr "rec { nixpkgs = builtins.getFlake \"nixpkgs\"; pkgs = import nixpkgs {}; flake = builtins.getFlake \"git+file://$(pwd)\"; out = flake.packages.x86_64-linux;} $@"
}
# shortcut for copying over to tab
tta(){

View File

@@ -1,15 +1,20 @@
{ ... }:
{ pkgs, ... }:
{
programs.git = {
enable = true;
userName = "Sebastian Moser";
userEmail = "sebastian@c2vi.dev";
extraConfig.credential.helper = "manager";
extraConfig.credential."https://git.htlec.org".username = "c2vi";
extraConfig.credential.credentialStore = "cache";
extraConfig = {
core.editor = "nvim";
core.color.ui = true;
core.pager = "delta";
extraConfig.core.excludesfile = "~/.config/git/gitignore";
core.excludesfile = "~/.config/git/gitignore";
};
};
home.packages = [ pkgs.git-credential-manager ];
}

View File

@@ -5,6 +5,20 @@
matchBlocks = {
"*" = {
identityFile = "${secretsDir}/private-key";
};
pcmc = {
hostname = "195.201.148.94";
user = "root";
};
ligai = {
hostname = "ssh.lightning.ai";
identityFile = "~/work/here/secrets/lightning-ai-key";
#IdentitiesOnly = "yes";
#ServerAliveInterval = 15;
#ServerAliveCountMax = 4;
#StrictHostKeyChecking = "no";
#UserKnownHostsFile = "/dev/null";
user = "s_01j7xkk335kbnr7r19zhssxn29";
};
"github.com" = {
hostname = "github.com";