aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/sils/roles.nix
blob: 811c0ea74071437f59199f9b6a45af353e3bfc22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{config, ...}: let
  roleCmp = string: config.role.sils == string;
in {
  config.sils =
    if roleCmp "laptop"
    then {
      basesystem.enable = true;
      networking.enable = true;
      nix-config.enable = true;
      plymouth.enable = true;
      theming.enable = true;
    }
    else if roleCmp "vm"
    then {}
    else {};
}