Skip to content

Davide-R0/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nixos

For developer

  • Activate git in configuration.nix
  • Create a ssh key with: sudo ssh-keygen -t ed25519 -C "nixos-root-config" -f /root/.ssh/id_nixos_github
  • Configura the ssh for Root: sudo nvim /root/.ssh/config with:
Host github.com
    IdentityFile /root/.ssh/id_nixos_github
    User git
  • Add permission: sudo chmod 600 /root/.ssh/config sudo chmod 600 /root/.ssh/id_nixos_github
  • Add the key to github deploy:
    1. Take the key: sudo cat /root/.ssh/id_nixos_github.pub
    2. Go on Github -> create the repository (if necessary) or go to the repository wanted -> Settings -> Deploy Key -> Add DeployKey (Allow write acces)
  • Then do as usual, but with sudo always before git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages