Flake lock file updates: • Updated input 'attic': 'github:zhaofengli/attic/4fedffe6a1020edfcfa7bef18d21321d4983b3a7' (2023-06-13) → 'github:zhaofengli/attic/4902d57f5dae8ec660ee9ee14c45c2192f9fe8b1' (2023-07-15) • Updated input 'hyprland': 'github:hyprwm/Hyprland/459afcc47f7a8fd0b85c4b89645099e2643732b3' (2023-07-14) → 'github:hyprwm/Hyprland/3229862dd4cbfa93638a4d16ed86ec2fda5d38a6' (2023-07-15) • Updated input 'nil': 'github:oxalica/nil/a7ab280e8607b52c25d899cdf7532db1ff71262f' (2023-07-12) → 'github:oxalica/nil/e2fe1b0bebcc810a5e6c24c061d4d8dcc061a8fc' (2023-07-14) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/fcc147b1e9358a8386b2c4368bd928e1f63a7df2' (2023-07-13) → 'github:NixOS/nixpkgs/9fdfaeb7b96f05e869f838c73cde8d98c640c649' (2023-07-14) • Updated input 'sops-nix': 'github:Mic92/sops-nix/88b964df6981e4844c07be8c192aa6bdca768a10' (2023-07-12) → 'github:Mic92/sops-nix/cfe47aff8660fd760b1db89613a3205c2c4ba7b6' (2023-07-15) • Updated input 'unstable': 'github:NixOS/nixpkgs/e74e68449c385db82de3170288a28cd0f608544f' (2023-07-13) → 'github:NixOS/nixpkgs/dfdbcc428f365071f0ca3888f6ec8c25c3792885' (2023-07-14) |
||
---|---|---|
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.