at 24.11-pre 734 B view raw
1{ config 2, pkgs 3, lib 4, ... 5}: 6let 7 cfg = config.services.intune; 8in 9{ 10 options.services.intune = { 11 enable = lib.mkEnableOption "Microsoft Intune"; 12 }; 13 14 15 config = lib.mkIf cfg.enable { 16 users.users.microsoft-identity-broker = { 17 group = "microsoft-identity-broker"; 18 isSystemUser = true; 19 }; 20 21 users.groups.microsoft-identity-broker = { }; 22 environment.systemPackages = [ pkgs.microsoft-identity-broker pkgs.intune-portal ]; 23 systemd.packages = [ pkgs.microsoft-identity-broker pkgs.intune-portal ]; 24 25 systemd.tmpfiles.packages = [ pkgs.intune-portal ]; 26 services.dbus.packages = [ pkgs.microsoft-identity-broker ]; 27 }; 28 29 meta = { 30 maintainers = with lib.maintainers; [ rhysmdnz ]; 31 }; 32}