Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/dbeley/nixos-config

My NixOS config files.
https://github.com/dbeley/nixos-config

dotfiles hyprland nix nixos nixos-config nixos-configuration nixos-dotfiles waybar

Last synced: 3 months ago
JSON representation

My NixOS config files.

Awesome Lists containing this project

README

        

# nixos-config

[![NixOS Unstable](https://img.shields.io/badge/NixOS-unstable-blue.svg?style=flat-square&logo=NixOS&logoColor=white)](https://nixos.org)

![t470s](imgs/t470s.png)

| Type | Program |
|----------------|------------------------------------------|
| **Shell:** | fish |
| **DM:** | tty1 |
| **WM:** | hyprland or sway + waybar |
| **Editor:** | doom-emacs / neovim / helix / kakoune |
| **Terminal:** | kitty |
| **Launcher:** | tofi |
| **Browser:** | firefox / qutebrowser |
| **Theme:** | stylix |

## Hosts

- **p14s**: my main laptop (Lenovo ThinkPad P14s Gen 4: AMD Ryzen 7 7840U, 16GB RAM, hyprland)
- **sg13**: my main desktop computer (Silverstone SG13: AMD Ryzen 5 2600, RX 580 8GB, 16GB RAM, gnome)
- **x61s**: my retro laptop (Lenovo Thinkpad X61s: Intel Core 2 Duo L7500, 3GB RAM, sway)
- (deprecated) **x13**: my previous main laptop (Lenovo ThinkPad X13 Gen 1: AMD Ryzen 5 4650U, 16GB RAM, hyprland)
- (deprecated) **t470s**: my previous main laptop (Lenovo Thinkpad T470s: Intel Core i5-6300U, 8GB RAM, hyprland)
- (deprecated) **era1**: my first server image installed in a Proxmox VM (Fractal Design Era: Intel N100, 32GB RAM)

## Usage

Rebuild the system

```
sudo nixos-rebuild switch --flake .#{host}
sudo nixos-rebuild switch --flake .#{host} --target-host root@ # for a remote host
```

Delete unused packages

```
sudo nix-collect-garbage -d # for system packages
nix-collect-garbage -d # for home-manager packages
```

Optimise store

```
nix-store --optimise -v
```

## Install

On a new install, you should first copy `/etc/nixos/hardware-configuration.nix` over `hosts/{host}/hardware-configuration.nix`.

## Post-install

```
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
```

### just

A `justfile` is also provided, see https://github.com/casey/just for more information.

```
just switch
just clean
```

Create a `.env` and fill it with the needed environment variables:

```
HOST=x13
````