Skip to content

lostlang/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instalation WSL

  1. Install NixOS WLS (in Windows PowerShell) (link)

  2. Pre configuation (in WSL)

    sudo nix-channel --update
    nix-shell -p age git sops
  3. Copy dots (in WSL)

    git clone https://github.com/lostlang/nixos-wsl-config $HOME/.config/nixos
    cd $HOME/.config/nixos
  4. Generate secrets (in WSL)

    sudo mkdir $HOME/.secret
    sudo age-keygen -o $HOME/.secret/key 
    sudo cp template.secret.yaml $HOME/.secret/secret.yaml
    sudo chmod 0600 $HOME/.secret/secret.yaml
  5. Encrypt file (in WSL)

    cd $HOME/.secret
    sudo -E SOPS_AGE_KEY_FILE=key sops -e -i -a <PUBLIC KEY> secret.yaml
  6. Change secrets (in WSL)

    sudo -E SOPS_AGE_KEY_FILE=key sops secret.yaml
  7. Install dots (in WSL)

    cd $HOME/.config/nixos/config
    sudo nixos-rebuild switch --flake .#wsl
    clean all
  8. Reboot WLS (in Windows PowerShell)

    wsl --shutdown
    
  9. Post configuration (in WSL)

    ssh-keygen -t ed25519 -a 100 -f ~/.ssh/default_ed25519
    ssh-keygen -t ed25519 -a 100 -f ~/.ssh/github_ed25519

Windows addition

  1. Install win32yank (use Scoop (link))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages