NixOS profiles for servers [maintainer=@numtide]
Go to file
2022-12-19 21:44:31 +01:00
hosts/mymachine snapshot! 2022-12-01 17:32:37 +01:00
profiles add telegraf configuration 2022-12-19 21:44:31 +01:00
roles roles/github-actions-runner: enable nix-ld 2022-12-02 14:47:54 +01:00
flake.lock add some example configuration 2022-12-19 16:08:40 +01:00
flake.nix add telegraf configuration 2022-12-19 21:44:31 +01:00
README.md README: fix typo 2022-12-19 16:13:24 +01:00

srvos

STATUS: experimental

Opinionated and sharable set of NixOS configurations.

As we learn more about NixOS in various deployments, we end up re-writing the same modules and configs. This is a way for us to speed up and share our setups.

Installation

Add srvos to your flake.nix and include it in your nixos configuration like this:

{
  inputs = {
    srvos.url = "github:numtide/srvos";
  };
  outputs = { srvos, nixpkgs, ... }: {
    nixosConfigurations.myHost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        srvos.nixosModules.common
      ];
    };
  };
}

File structure

  • modules - NixOS modules with options only
  • profiles - NixOS modules with configuration only
  • roles - NixOS modules defines machine types