opinionated nixos library
Find a file
2026-06-27 23:09:16 -07:00
defaults git: unset conflictStyle 2026-06-26 07:42:05 -07:00
LICENSES chore: comply with REUSE 2026-04-06 10:31:42 -07:00
default.nix treewide: add and use option nixowos.allowAddingPackages 2026-03-23 21:17:09 -07:00
nvidia.nix feat(nvidia): enable powerManagment 2026-06-24 10:12:23 -07:00
README.md docs: use cleaner way of adding module 2026-06-27 23:09:16 -07:00
REUSE.toml chore: comply with REUSE 2026-04-06 10:31:42 -07:00

Description

set of nixos modules to set better (opinionated) defaults

Usage

You could clone this repo into /etc/nixos and add a submodule. Or, add it as a flake input.

Example flake

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    nixowos = {
      url = "git+https://git.federated.nexus/electria/nixowos";
      flake = false;
    };
  };
  outputs =
    inputs:
    {
      # NOTE: 'nixos' is the default hostname
      nixosConfigurations.nixos = inputs.nixpkgs.lib.nixosSystem {
        modules = [
          ./configuration.nix
          ./hardware-configuration.nix

          inputs.nixowos.outPath
          {
            nixowos = {
              defaults.enable = true;
              allowAddingPackages = true;
            };
          }
        ];
      };
    };
}