mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 16:11:51 +03:00
b95189d754
the commmunity branch was fallen too far behind and there where no contributions to it, anyways. We will start linking usage examples out in the wild, instead.
650 B
650 B
Suites
Suites provide a mechanism for users to easily combine and name collecitons of profiles.
suites
are defined in the importables
argument in either the home
or nixos
namespace. They are a special case of an importable
which get passed as a special
argument (one that can be use in an imports
line) to your hosts. All lists defined
in suites
are flattened and type-checked as paths.
Definition
rec {
workstation = [ profiles.develop profiles.graphical users.nixos ];
mobileWS = workstation ++ [ profiles.laptop ];
}
Usage
hosts/my-laptop.nix
:
{ suites, ... }:
{
imports = suites.mobileWS;
}