Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

My NixOS configuration
https://github.com/gaelreyrol/nixos-config

dotfiles nix nixos nixos-dotfiles

Last synced: 2 months ago
JSON representation

My NixOS configuration

Awesome Lists containing this project

README

        

# nixos-config

[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
[![.github/workflows/ci.yml](https://github.com/gaelreyrol/nixos-config/actions/workflows/ci.yml/badge.svg)](https://github.com/gaelreyrol/nixos-config/actions/workflows/ci.yml)

## Setup

```bash
git clone [email protected]:gaelreyrol/nixos-config.git ~/.config/nix
cd ~/.config/nix
```

## Actions

### Build system

```bash
make nixos-build
```

### Switch system

```bash
make nixos-switch
```

### Garbage collect

```bash
make nix-garbage-collect
```

### Diff system & home-manager generations

```bash
make system-diff
make home-manager-diff
```

## Post actions

### Import Keybase keys

```bash
keybase pgp export -s | gpg --allow-secret-key-import --import
```

### Setup Yubikey challenge-response

```bash
ykman otp chalresp --touch --generate 2
ykpamcfg -2 -v
```

### Add a new host key to SOPS

```bash
# On user host
mkdir -p ~/.config/sops/age
ssh-to-age -private-key -i ~/.ssh/id_ed25519 > ~/.config/sops/age/keys.txt
age-keygen -y ~/.config/sops/age/keys.txt # Add output to .sops.yaml file
# On server host
cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age # Add output to .sops.yaml file

# Update secrets files with new keys
sops updatekeys secrets/default.yaml
```

## Credits

-
-
-
-
-
-
-