nix-dotfiles/README.md

42 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2022-08-19 02:35:41 +02:00
[![built with nix](https://builtwithnix.org/badge.svg)](https://builtwithnix.org)
# Nix Dotfiles
These are my dotfiles for several nix machines.
2023-10-06 17:50:14 +02:00
Here are some of the interesting files and dirs:
| Path | Purpose |
|------|---------|
| `/home` | [home-manager][home-manager] configuration. |
2022-08-19 02:35:41 +02:00
| `/hosts` | Machine specific NixOS configurations. |
| `/hosts/common/default.nix` | Configuration that is equal for all hosts. |
2023-10-06 17:50:14 +02:00
| `/lib` | Custom lib functions that has not been upstreamed (or should not be) to nixpkgs. I'm trying to phase these out as much as possible. |
| `/modules` | Custom nixos modules that I use in my own configuration. If you see options that does not appear in [NixOS Search][nixos-search], they might be defined here. |
| `/package-overrides` | Updated or pinned versions of packages that have not been upstreamed to nixpkgs (yet). |
| `/secrets` | Encrypted [sops-nix][sops-nix] secrets. |
| `flake.nix` | The root of everyting. Defines the inputs and outputs of the project. Also applies misc overlays and adds config-wide modules. See [Nix Flakes][nix-flakes] for more information. |
2022-08-19 02:35:41 +02:00
## Hosts
| Host | Machine type | Purpose |
|------|--------------|---------|
2023-10-06 17:50:14 +02:00
| `Tsuki` | Dell Poweredge r710 server | Data storage / Build server / Selfhosted services. This server hosts a wide variety of services, including websites, matrix server, git repos, CI/CD and more. **This is probably the most interesting machine to pick config from** |
2024-06-29 12:48:21 +02:00
| `Kasei` | AMD Zen 2 CPU / Nvidia GPU - desktop computer | Semi-daily driver. This is my main computer at home. |
2024-06-26 20:37:40 +02:00
| `Dosei` | Dell Optiplex | Work computer, mostly used for development and testing. |
2022-08-19 02:35:41 +02:00
2023-10-06 17:50:14 +02:00
## home-manager configuration
2022-08-19 02:35:41 +02:00
2023-10-06 17:50:14 +02:00
| Path | Purpose |
|------|---------|
| `/home/config` | Configuration for everything that is not a program, nor a service, and are big enough to warrant their own file or directory. |
| `/home/modules` | Custom home-manager modules. |
| `/home/packages.nix` | A list of packages that should be included in the environment. |
| `/home/programs` | Configuration for programs that have their own home-manager modules. |
| `/home/services` | Configuration for services/daemons that are user-specific. |
| `/home/shell.nix` | Shell-agnostic configuration. This includes aliases, envvars, functions, etc. |
2022-08-19 02:35:41 +02:00
[home-manager]: https://github.com/nix-community/home-manager
2023-10-06 17:50:14 +02:00
[nixos-search]: https://search.nixos.org/options
[sops-nix]: https://github.com/Mic92/sops-nix
[nix-flakes]: https://nixos.wiki/wiki/Flakes