{ config, lib, ... }: let cfg = config.my.profiles.desktop; in { options.my.profiles.desktop = with lib; { enable = mkEnableOption "desktop profile"; }; config = lib.mkIf cfg.enable { my = { systems = { fonts.enable = true; }; services = { gnome.enable = true; # we need avahi in order to use the printer/scanner avahi.enable = true; }; profiles = { wm.windowManager = "sway"; }; programs = { sway.enable = true; }; }; }; }