refactor(system): flatten

This commit is contained in:
ooks-io 2024-05-24 23:44:07 +12:00
parent 24dee2cadc
commit f47154c234
29 changed files with 32 additions and 268 deletions

View file

@ -1,17 +0,0 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
inherit (lib.lists) any elem;
hasFunction = f: elem f config.systemModules.host.function;
in
{
config = mkIf (any hasFunction ["workstation" "gaming"]) {
services.dbus = {
enable = true;
packages = with pkgs; [ dconf gcr udisks2 ];
implementation = "broker";
};
};
}