Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gregorykogan/dotfiles-nixos

My NixOS configuration files
https://github.com/gregorykogan/dotfiles-nixos

nix nix-flake nixos nixos-config nixos-configuration nixos-dotfiles nixpkgs

Last synced: about 23 hours ago
JSON representation

My NixOS configuration files

Awesome Lists containing this project

README

        

# dotfiles-nixos

[![Hits-of-Code](https://hitsofcode.com/github/GregoryKogan/dotfiles-nixos?branch=main)](https://hitsofcode.com/github/GregoryKogan/dotfiles-nixos/view?branch=main)



## 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`

```shell
sudo nano /etc/nixos/configuration.nix
```

Rebuild the system

```shell
sudo nixos-rebuild switch
```

**2. Download configs**

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

**3. Rebuild the system**

Availabe `` options:
- `vm` - UTM virtual machine

```shell
sudo nixos-rebuild switch --impure --flake ~/nixos#
```

### Post install

Generate github ssh key and add it to your account

```shell
github-ssh
```

Update this repo to use ssh remote origin

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

### Troubleshooting

**Magic commands that sometimes fix weird errors**

Collect garbage

```shell
nix-collect-garbage -d
```

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

```shell
nix-store --verify --check-contents --repair
```