opinionated nixos library
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
electria 652550ab41
system: don't enable sudo-rs
it's somewhat pointless, especially with run0 being more useful
(and it's already there by default)

this setting also seems to ignore `nixowos.allowAddingPackages`
2026-09-02 11:06:58 -07:00
defaults system: don't enable sudo-rs 2026-09-02 11:06:58 -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;
            };
          }
        ];
      };
    };
}