Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Nix 94.7%
Just 5.3%
155 1 0

Clone this repository

https://tangled.org/cosmeak.dev/asgard https://tangled.org/did:plc:7kmeyu6jyyczz7v2au2wt3hz/asgard
git@tangled.org:cosmeak.dev/asgard git@tangled.org:did:plc:7kmeyu6jyyczz7v2au2wt3hz/asgard

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

asgard

IMPORTANT

This configuration is under constant construction so some things may be remove or add accordings to my needs but i want to keep all even if it's not used anymore.

Since this configuration is made for my own needs, you can take inspiration and some configuration but do not expect it to work on your side.

Any damage caused by this configuration is not my responsibility, so use it at your own risks.

Table of Contents#

Features & Capabilities#

This repository want this to be multi-user and multi-host so there is some workaround to make things work like i want and keep it simple.

  • NixOS
  • Nix Darwin
  • WSL (because not used anymore)
  • Nix BSD (in wait of a stable state to be used anywhere else than a vm)
  • MicroVM for servers
  • Secrets management
  • Secure Boot
  • Persistant storage
  • Disk configuration
  • Encrypted disks
  • Home management
  • Custom live ISO
  • Automatic updates

Installation#

TODO: write the documentation to install easely a new host with a few steps

Machines#

Hostname Motherboard CPU GPU RAM OS Usage Status
njord - Apple M2 Pro Apple M2 Pro 32Go 🍎️ ⌨️ 🟢️
loki ASUS ROG STRIX B760-I GAMING WIFI Intel i5 13600kf Nvidia 4070ti 32Go ❄️ 🎮️ 🟢️
lithium Raspberry Pi3 b+ - - 1Go ❄️ 🧨️ 🔴
vali WSL - - 8Go ❄️ 💾️ 🔴
andhrimnir Aorus B450 Elite AMD Ryzen 3 3300X Nvidia 1060 16Go ❄️ 🎮️ / ⌨️ 🟢️
elli HP ProDesk 400 G1 DM Intel Pentium G3250T - 8Go ❄️ 💾️ 🟠
sunna ASUS ROG STRIX G15 Intel i7 10870H Nvidia 2060 16Go ❄️ 🖥️ 🔴
Legend
  • 🎮️ : Gaming
  • 💾️ : Server
  • ☁️ : Virtual Machime
  • ⌨️ : Coding
  • 🖥️ : Office
  • 🧨️ : Testing purpose
  • 🎭️ : Dual Boot
  • ❄️ : NixOS
  • 🍎️ : MacOS
  • 👹️ : FreeBSD with NixBSD

Folder structure#

TODO: write the new documentation with the dentritic pattern usage

Commands#

You can get all recipes using the just command and running one of the available commands below with just <command> <arguments*>:

Available recipes:
  boot hostname=hostname   # Build a new configuration
  clean                    # Cleanup all unused packages and generations
  format                   # Format code
  size                     # Print size of the nix store
  switch hostname=hostname # Rebuild the system
  update                   # Update dependencies

Documentations#

These are the things that help me the most to understand Nix ecosystem and help me build my configuration from scratch.

You can retrieve dotfiles that inspired me inside my dotfiles star list.

Troubleshooting#

  • If the rebuild command failed because an experimental feature is disabled use this command:
sudo -E NIX_CONFIG="experimental-features = nix-command flakes pipe-operators" nixos-rebuild switch --flake .