Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gregorykogan/dotfiles-nixos
- Owner: GregoryKogan
- License: mit
- Created: 2024-05-02T23:19:28.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T15:16:22.000Z (6 months ago)
- Last Synced: 2024-10-11T00:21:01.902Z (28 days ago)
- Topics: nix, nix-flake, nixos, nixos-config, nixos-configuration, nixos-dotfiles, nixpkgs
- Language: Nix
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```