at master 770 B view raw
1{ 2 config, 3 pkgs, 4 lib, 5 ... 6}: 7let 8 cfg = config.services.intune; 9in 10{ 11 options.services.intune = { 12 enable = lib.mkEnableOption "Microsoft Intune"; 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 = [ 23 pkgs.microsoft-identity-broker 24 pkgs.intune-portal 25 ]; 26 systemd.packages = [ 27 pkgs.microsoft-identity-broker 28 pkgs.intune-portal 29 ]; 30 31 systemd.tmpfiles.packages = [ pkgs.intune-portal ]; 32 services.dbus.packages = [ pkgs.microsoft-identity-broker ]; 33 }; 34 35 meta = { 36 maintainers = with lib.maintainers; [ rhysmdnz ]; 37 }; 38}