1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-23 16:11:51 +03:00
digga/doc/concepts/suites.md

27 lines
677 B
Markdown
Raw Normal View History

2021-02-14 05:38:20 +03:00
# Suites
Suites provide a mechanism for users to easily combine and name collecitons of
profiles. For good examples, check out the suites defined in the community
2021-02-18 04:31:33 +03:00
[branch](https://github.com/divnix/devos/blob/community/suites/default.nix).
2021-02-14 05:38:20 +03:00
In the future, we will use suites as a mechanism for deploying various machine
types which don't depend on hardware, such as vm's and containers.
2021-04-19 06:13:12 +03:00
They are defined in `profiles/suites.nix`.
2021-02-14 05:38:20 +03:00
## Definition
```nix
rec {
workstation = [ profiles.develop profiles.graphical users.nixos ];
mobileWS = workstation ++ [ profiles.laptop ];
}
```
## Usage
`hosts/my-laptop.nix`:
```nix
{ suites, ... }:
{
imports = suites.mobileWS;
}
```