mirror of
https://github.com/NuschtOS/nixos-modules.git
synced 2024-09-13 13:00:08 +02:00
mirror incase github.com is down
8d4fee195a
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from V27 to 28. This release includes the previously tagged commit. - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Commits](https://github.com/cachix/install-nix-action/compare/V27...V28) --- updated-dependencies: - dependency-name: cachix/install-nix-action dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
---|---|---|
.github | ||
lib | ||
modules | ||
.editorconfig | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
NixOS Modules
Opinionated, integrated and shared NixOS modules
Usage
Add or merge the following settings to your flake.nix
:
{
inputs = {
nixpkgs.url = "github:NuschtOS/nuschtpkgs/nixos-unstable";
nixos-modules = {
url = "github:NuschtOS/nixos-modules";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixos-modules }: {
nixosConfigurations.HOSTNAME = {
modules = [
nixos-modules.nixosModule
];
};
}
If your nixpkgs
input is named differently, update the follows
to your name accordingly.
By using nixos-modules.nixosModule
, all available modules are imported.
It is also possible to only import a subset of modules.
Under nixos-modules.nixosModules.<name>
we expose all modules available in the modules directory.
Note
Sometimes we use options from yet-to-be-merged Nixpkgs pull requests. We offer a nixpkgs fork named nüschtpkgs to close that gap. We offer the latest stable branch and unstable and it is daily rebased.
Design
- Modules should never change the configuration without setting an option
- Unless the global overwrite
opinionatedDefaults = true
is set which activates most settings. Unless you know what you are doing, you shouldn't really set this option.