Started setup for easier gitea usage
This commit is contained in:
@ -171,8 +171,6 @@
|
||||
source /etc/nixos/other/pfp.sh
|
||||
|
||||
source /etc/nixos/other/theme-reminder.sh
|
||||
|
||||
echo -e "Use: $YELLOW'home-manager switch'$NOCOLOR or $DARKGRAY'home-upd'$NOCOLOR (if available) to update your home manager!"
|
||||
'';
|
||||
|
||||
|
||||
|
||||
@ -69,6 +69,7 @@
|
||||
./firefox.nix
|
||||
./zsh.nix
|
||||
./autostart.nix
|
||||
#./gitea.nix
|
||||
#./neovim.nix
|
||||
./packages.nix
|
||||
./lockscreen.nix
|
||||
|
||||
21
gitea.nix
Normal file
21
gitea.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
programs.ssh = {
|
||||
startAgent = true;
|
||||
extraConfig = ''
|
||||
Host gitea
|
||||
HostName http://100.89.141.79:3000/
|
||||
User cookiez
|
||||
IdentityFile ~/.ssh/gitea
|
||||
IdentitiesOnly yes
|
||||
'';
|
||||
};
|
||||
|
||||
environment.etc."ssh-keys/gitea".source = /etc/nixos/other/ssh-keys/gitea;
|
||||
environment.etc."ssh-keys/gitea".mode = "0600";
|
||||
|
||||
# Optional: symlink to ~/.ssh
|
||||
#environment.homeFiles = {
|
||||
# ".ssh/gitea" = "/etc/ssh-keys/gitea";
|
||||
#};
|
||||
}
|
||||
13
home.nix
13
home.nix
@ -22,6 +22,8 @@
|
||||
# changes in each release.
|
||||
home.stateVersion = version;
|
||||
|
||||
#home.file.".ssh/gitea".source = /etc/nixos/other/ssh-keys/gitea;
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs = {
|
||||
home-manager = { enable = true; };
|
||||
@ -32,6 +34,17 @@
|
||||
userEmail = "jaden-puerkenauer@web.de";
|
||||
};
|
||||
|
||||
ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host gitea
|
||||
HostName http://100.89.141.79:3000/
|
||||
User cookiez
|
||||
IdentityFile ~/.ssh/gitea
|
||||
IdentitiesOnly yes
|
||||
'';
|
||||
};
|
||||
|
||||
zen-browser = {
|
||||
enable = true;
|
||||
#package = inputs.zen-browser.packages.${pkgs.system}.default;
|
||||
|
||||
@ -28,11 +28,11 @@ alias nix-edit-zsh="sudoedit /etc/nixos/zsh.nix"
|
||||
alias nix-aliases="sudoedit /etc/nixos/other/aliases"
|
||||
alias nix-edit-aliases="sudoedit /etc/nixos/other/aliases"
|
||||
alias nix-regenerate-config="sudo nixos-generate-config"
|
||||
alias nix-home="echo To edit home manager run command \'home-edit\'"
|
||||
alias nix-home="sudoedit /etc/nixos/home.nix"
|
||||
alias nix-gc="sudo nix-store --gc"
|
||||
alias nix-clean="sudo nix-store --gc"
|
||||
alias nix-clear="sudo nix-store --gc"
|
||||
|
||||
alias home-edit="sudoedit /etc/nixos/home.nix"
|
||||
alias home-upd="home-manager switch"
|
||||
alias home-update="home-manager switch"
|
||||
|
||||
alias cd-nix="cd /etc/nixos/"
|
||||
|
||||
7
other/ssh-keys/gitea
Normal file
7
other/ssh-keys/gitea
Normal file
@ -0,0 +1,7 @@
|
||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
|
||||
QyNTUxOQAAACBC5b8lmBdsmTEpEr/ue+P4SQkorJz3LU6rTJ+u46dZHgAAAJDgFZde4BWX
|
||||
XgAAAAtzc2gtZWQyNTUxOQAAACBC5b8lmBdsmTEpEr/ue+P4SQkorJz3LU6rTJ+u46dZHg
|
||||
AAAEBxskKJRsisml2xBI0VTX9BFCKEUKJc7bn5yhzaxh4ie0LlvyWYF2yZMSkSv+574/hJ
|
||||
CSisnPctTqtMn67jp1keAAAADGdpdGVhLWFjY2VzcwE=
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
1
other/ssh-keys/gitea.pub
Normal file
1
other/ssh-keys/gitea.pub
Normal file
@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIELlvyWYF2yZMSkSv+574/hJCSisnPctTqtMn67jp1ke gitea-access
|
||||
Reference in New Issue
Block a user