Skip to content

GregoryKogan/dotfiles-nixos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles-nixos

Hits-of-Code

Installation

0. Install NixOS

It's not recommended to get any desktop environment on initial installation of NixOS.

1. Install git

Open default NixOS config file and add git to packages

sudo nano /etc/nixos/configuration.nix

Rebuild the system

sudo nixos-rebuild switch

2. Download configs

git clone https://github.com/GregoryKogan/dotfiles-nixos.git ~/nixos

3. Rebuild the system

Availabe <host> options:

  • vm - UTM virtual machine
sudo nixos-rebuild switch --impure --flake ~/nixos#<host>

Post install

Generate github ssh key and add it to your account

github-ssh

Update this repo to use ssh remote origin

git remote set-url origin [email protected]:GregoryKogan/dotfiles-nixos.git

Troubleshooting

Magic commands that sometimes fix weird errors

Collect garbage

nix-collect-garbage -d

Repair nix-store files (should be run as sudo)

nix-store --verify --check-contents --repair