Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/86bb69b0b1e10d99a30c4352f230f03106dd0f8a' (2023-03-02) → 'github:nix-community/home-manager/b0be47978de5cfd729a79c3f57ace4c86364ff45' (2023-03-08) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/7edcdf7b169c33cd3eef9aba50521ce93ee666b8' (2023-03-06) → 'github:NixOS/nixpkgs/a7cc81913bb3cd1ef05ed0ece048b773e1839e51' (2023-03-07) • Updated input 'sops-nix': 'github:Mic92/sops-nix/7cff56b43952edc5a2c212076d5fc922f764240f' (2023-03-05) → 'github:Mic92/sops-nix/00e9e9cd46600d68dd98a392025d4894c3711b58' (2023-03-08) • Updated input 'unstable': 'github:NixOS/nixpkgs/a028e2873d7fcf44e66b784b4ba061824315537f' (2023-03-06) → 'github:NixOS/nixpkgs/c90c4025bb6e0c4eaf438128a3b2640314b1c58d' (2023-03-08) |
||
---|---|---|
home-manager-modules | ||
lib | ||
machines | ||
modules | ||
packages | ||
secrets | ||
users | ||
.sops.yaml | ||
base.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
My NixOS Configurations ❄
This repository contains the configurations of my machines using NixOS.
What is NixOS ?
NixOS is a linux distribution based on the Nix package manager. It allows fully reproducible builds and a declarative configuration style, using a functionnal langage called Nix (yes, it is the same name as the package manager and the OS).
What is a flake ?
This whole repository is a flake. It is an experimental feature of Nix, allowing for pure evaluation of code. Dependency are fully specified and locked.
How does this work ?
Machines
This project manage the configuration of three machines :
- Macintosh, a thinkpad laptop,
- Lisa, a high performance server,
- Newton, a low performance stockage server.
Machines configurations are located in the machines folder, and are using all the custom modules defined in this project.
Modules
This configuration defines a number of custom NixOS and home-manager modules. They are respectively defined in the modules and home-manager-modules folders.
Secrets
Secrets are stored in the secrets folder. They are uncrypted upon system activation using the host ssh key. Secrets are managed using nix-sops.
Inspirations
This project is freely inspired by some really cool projects, including MayNiklas/nixos, pinox/nixos and ncfavier/config.