2023-01-03 05:13:16 +01:00
|
|
|
# nixos-modules
|
2022-12-31 01:33:10 +01:00
|
|
|
|
2023-01-03 05:13:16 +01:00
|
|
|
Opinionated shared NixOS configurations.
|
2022-12-31 01:33:10 +01:00
|
|
|
|
2023-01-03 05:13:16 +01:00
|
|
|
## Usage
|
2022-12-31 01:33:10 +01:00
|
|
|
|
2023-01-03 05:13:16 +01:00
|
|
|
Add or merge the following settings to your `flake.nix`:
|
2022-12-31 01:33:10 +01:00
|
|
|
|
2023-01-03 05:13:16 +01:00
|
|
|
```nix
|
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixos-modules.url = "github:SuperSandro2000/nixos-modules";
|
|
|
|
};
|
2022-12-31 01:33:10 +01:00
|
|
|
|
2023-01-03 05:13:16 +01:00
|
|
|
outputs = { nixos-modules }: {
|
|
|
|
nixosConfigurations.HOSTNAME = {
|
|
|
|
modules = [
|
|
|
|
nixos-modules.nixosModule
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Design
|
|
|
|
|
|
|
|
* Modules should never change the configuration without setting an option
|
|
|
|
* Unless the global overwrite ``opinionatedDefaults = true`` is set which activates most settings.
|
|
|
|
|
|
|
|
## Similar projects
|
|
|
|
|
|
|
|
* https://github.com/numtide/srvos
|
|
|
|
* https://gitea.c3d2.de/C3D2/nix-user-module
|