Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gaelreyrol/nixos-config
- Owner: gaelreyrol
- Created: 2022-07-10T13:45:19.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-17T05:40:09.000Z (3 months ago)
- Last Synced: 2024-10-19T07:31:01.488Z (3 months ago)
- Topics: dotfiles, nix, nixos, nixos-dotfiles
- Language: Nix
- Homepage:
- Size: 9.6 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 48
-
Metadata Files:
- Readme: ReadMe.md
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
-
-
-
-
-
-
-